(Translated by https://www.hiragana.jp/)
GitHub - medecau/packets: UDP for Humans
Skip to content

medecau/packets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

pip install packets

Use for clients

    import packets

    client = packets.User()
    client.sendto((server.host, server.port), 'Hi!')
    print client.next.body

Use for servers

    import packets

    server = packets.User()
    packet = server.next
    if packet.body == 'ping':
        packet.reply('pong')

Documentation

To be written

Meanwhile take a look at the source code.

Bugs & Co.

If you find bugs or new features that are not implemented you can:

Releases

No releases published

Packages

No packages published

Languages