If your project exposes a module
mymodule.py:
import onetrick
@onetrick(__name__)
def myfunction():
print("Hello world!")
Then it can be called from elsewhere:
import mymodule
#Either like this
mymodule() # (Hello world!)
#Or like this
mymodule.myfunction() # (Hello world!)
If your project exposes a package
.
+-- mypackage
| +-- __init__.py
| +-- mymodule.py
mymodule.py:
import onetrick
@onetrick
def myfunction():
print("Hello world!")
__init__.py:
from .mymodule import myfunction
myfunction.onetrick(__name__)
Then it can be called from elsewhere:
import mypackage
#Either like this
mypackage() # (Hello world!)
#Or like this
mypackage.myfunction() # (Hello world!)
Metadata
Release files for onetrick 2.1.1
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 | |
|---|---|---|---|---|
| onetrick-2.1.1.tar.gz | 1.7 kB | Without provenance | Details |
Release files / onetrick-2.1.1.tar.gz
| Download URL | onetrick-2.1.1.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94c804c9f2a8b99dc97fa4e405b4d4bb1f42b6990ddccd7bb0c44397b2b35d4e
|
|
BLAKE2b-256 checksum How to use checksums |
a3df737d621a30cb5c9f0c62472027737fbba1416368743ac5b5acca0e55e821
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for onetrick 2.1.1
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.