library for SIP url handling/maninupation
Project description
ursine - a bearable sip uri library
installing
ursine is packaged and available on pypi
pip install ursine
basic usage
from ursine import URI
alice_uri = URI('"Alice" <sips:alice@localhost:5080>')
bob_uri = URI('"Bob" <sips:bob@localhost:5080>')
# URI mutations actually return new, distinct URIs
modified_uri = alice_uri.with_port(6000)
assert modified_uri != alice_uri # True
# optional URI components can be removed
userless_uri = bob_uri.with_contact(None).with_user(None)
# URIs can be stringified again for use in other sytems
print(userless_uri) # 'sips:localhost:5080;transport=tcp'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ursine-0.2.4.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for ursine-0.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 920093c9564d42e93d606840726d2783418b2e999524ded80e99d46d63a448aa |
|
MD5 | 3d9a01e08337b7853f4f73487ebe34d9 |
|
BLAKE2b-256 | 8a0a5c8ece1ab2d0a980bad3bad7f383e4c0e0472224ee1e026b808a76524bf0 |