A python implementation of urbit-ob
Project description
urbit-pob
A python implementation of urbit-ob
Module Use
The library exposes two families of functions:
patp / patp_to_num / patp_to_hex / hex_to_patp / is_valid_patppatq / patq_to_num / patq_to_hex / hex_to_patq / is_valid_patq
As well as:
clan, for determining the ship class of a@pvaluesein, for determining the parent of a@pvalueeq_patq, for comparing@qvalues for equalityis_valid_pat, for a faster/weaker check of@por@q-ness that only validates syllables (and not proper dash formatting)
>>> import urbitob
>>> urbitob.patp(314159)
'~batdyr-topmun'
>>> urbitob.patp_to_num("~faster-pollen")
2077885931
>>> urbitob.hex_to_patq("EFFACED")
'~wisfes-batsed'
>>> urbitob.sein("~hashes-happen")
'~hattug'
>>> urbitob.clan("~marzod")
'star'
Testing
A simple python -m unittest will run the test suite.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file urbitob-0.0.2-py3-none-any.whl.
File metadata
- Download URL: urbitob-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c769fc8dd2d7f02b6cdfd5d65c51f994d43c403af86b5bbe36be456f010ad4f
|
|
| MD5 |
50ea5ffe7d36b7c7955577d54dae8ee7
|
|
| BLAKE2b-256 |
31e1bce6df1b093fcb12cfc9665f9fa6b1c5e2f244f43ab7d8478a5e106c513a
|