Skip to main content

library for SIP url handling/maninupation

Project description

ursine - a bearable sip uri library

Build Status


ursine is packaged and available on pypi

pip install ursine

basic usage

from ursine import URI, Header

# build new URIs / Headers
uri ='sip', host='', transport='tcp')
print(uri)  # sip:;transport=tcp
header ='Alice', uri=uri, tag='xyz')
print(header)  # "Alice" <sip:;transport=tcp>;tag=xyz

# parse existing ones
uri = URI('sips:[::1]:5080')
uri.scheme == 'sips' == '[::1]'
uri.transport == 'tcp'

header = Header('"Bob" <sips:[::1]:5080>;tag=abc')
header.display_name == 'Bob'
header.tag == 'abc'
header.uri.scheme == 'sips'

# Header and URI objects are immutable
alice_uri = URI('sip:alice@')
modified_uri = alice_uri.with_user(None)  # 'sip:;transport=udp'
modified_uri != alice_uri

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ursine, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size ursine-0.3.1-py2.py3-none-any.whl (10.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size ursine-0.3.1.tar.gz (10.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page