Skip to main content

library for SIP url handling/maninupation

Project description

ursine - a bearable sip uri library

Build Status


installing

ursine is packaged and available on pypi

pip install ursine

basic usage

from ursine import URI, Header

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

# parse existing ones
uri = URI('sips:[::1]:5080')
uri.scheme == 'sips'
uri.host == '[::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@10.10.10.10')
modified_uri = alice_uri.with_user(None)  # 'sip:10.10.10.10;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.

Source Distribution

ursine-0.3.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

ursine-0.3.1-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ursine-0.3.1.tar.gz.

File metadata

  • Download URL: ursine-0.3.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ursine-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0dcfd0416c40a4f079ce541234c25f642af4e63d9873e2cdb6cfa1e1a7290920
MD5 5992a3e47c385e7a82f883ec7e6fea87
BLAKE2b-256 60430f612f493ce4a3c693d6d73107bbedcde4eb649cfc91471cb6423b001f0d

See more details on using hashes here.

File details

Details for the file ursine-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ursine-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ec74587a63005226f39ce07eb836f19b90e376d741942af5efa7ce8e5da6b227
MD5 a9631203f16be7832e63c1a320ba0896
BLAKE2b-256 520cf5afa945bea94be9ddd27ec8115f59ff2929cbea7b2314b29b88248d76e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page