https://github.com/technige/shortwave
Shortwave is a library of components for Python network applications
https://github.com/technige/shortwave
Last synced: 7 months ago
JSON representation
Shortwave is a library of components for Python network applications
- Host: GitHub
- URL: https://github.com/technige/shortwave
- Owner: technige
- License: apache-2.0
- Created: 2016-08-20T10:01:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T21:30:29.000Z (over 9 years ago)
- Last Synced: 2025-06-20T03:04:20.620Z (12 months ago)
- Language: Python
- Homepage: http://shortwave.tech
- Size: 123 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

----
**CAREFUL NOW! This library is not yet ready for production use and currently only works on Linux systems that provide *epoll*.**
----
Shortwave is a library of components for Python network applications.
It has been put together from separate modules, libraries and applications that I have worked on over the years.
The library is coming together quickly.
Much of the pre-existing code is well tested and the job is to bring these parts together as a coherent whole.
So far, Shortwave consists of the following:
## `shortwave.transmission`
Low-level components for TCP communication.
This layer sits just above raw sockets.
It hosts a synchronous `Transmitter` and an asynchronous `Receiver` that are brought together within an extensible `Connection` object.
## `shortwave.messaging`
An implementation of RFC 822 plus some other utilities for network messaging.
## `shortwave.http`
An HTTP client implementation.
## `shortwave.uri`
A collection of URI and URI template functions as described by RFCs 3986 and 6570.
----
**TODO: Lots. Working on it.**
----
## Command Line Usage
Install the command line interface by running `python setup.py develop`.
### GET a web page
```
shortwave.http get -v http://shortwave.tech/hello
```
### POSTing data
```
shortwave.http post -j -v http://shortwave.tech/json '{"greeting": "hello, world"}'
```