fesenjoon
A simple package
import fesenjoon
drive = fesenjoon.Drive()
# NOTE: URI params must be strings not integers
gist_uri = 'https://api.github.com/gists{/gist_id}'
t = URITemplate(gist_uri)
print(t.expand(gist_id='123456'))
# => https://api.github.com/users/sigmavirus24/gists/123456
# or
print(expand(gist_uri, gist_id='123456'))
# also
t.expand({'gist_id': '123456'})
print(expand(gist_uri, {'gist_id': '123456'}))
Where it might be useful to have a class
from fesenjoon import Drive
drive = Drive()
When the module containing this class is loaded, GitHubUser.url is evaluated and so the template is created once. It’s often hard to notice in Python, but object creation can consume a great deal of time and so can the re module which uritemplate relies on. Constructing the object once should reduce the amount of time your code takes to run.
Installing
pip install fesenjoon
License
GPL license
Metadata
Release files for fesenjoon 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fesenjoon-0.0.5.tar.gz | 18.6 kB | Without provenance | Details for fesenjoon-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fesenjoon-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for fesenjoon-0.0.5-py3-none-any.whl |
Total release size: 37.6 kB
Release files / fesenjoon-0.0.5.tar.gz
| Download URL | fesenjoon-0.0.5.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87214f58ee3067a758cfa14c455bf11cc0759f559fda6e0a3d41c65a37662bab
|
|
BLAKE2b-256 checksum How to use checksums |
b3a412dbd0ff615522205b6fb787402c23c2b01fdd772a28b973dd5281a18dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / fesenjoon-0.0.5-py3-none-any.whl
| Download URL | fesenjoon-0.0.5-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8dc366c19c218116dd5c05facfc3ed988592fdad2a89468ca911785fa996192
|
|
BLAKE2b-256 checksum How to use checksums |
bacf15fb47a161190c6903fd86a5a10fdab32acfeb4690df5004c29e4dce367a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for fesenjoon 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.