
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Documentation_ -- GitHub_
A simple package
.. code-block:: python
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
.. code-block:: python
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.
::
pip install fesenjoon
GPL license_
.. _Documentation: https://fesenjoon.readthedocs.io/ .. _GitHub: https://github.com/mohsenhariri/fesenjoon .. _license: https://github.com/mohsenhariri/fesenjoon/blob/main/LICENSE
FAQs
A simple multiprocessing google drive api
We found that fesenjoon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.