===========
The module [staticinit](staticinit.py) defines the decorator `@staticinit.init()` for classes, which executes a static
constructor after the annotated class has been created.
By default, the name of the according constructor method is assumed to be `__static_init__`, but an alternative name may
be specified via the keyword arg `init_meth`.
Notice further that the constructor has to be a class method.
The following example illustrates how to use this module:
```python
import staticinit
@staticinit.init()
class SomeClass(object):
@classmethod
def __static_init__(cls):
# do some initialization stuff here...
```
Metadata
Release files for staticinit 2017.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 | Actions |
|---|---|---|---|---|
| staticinit-v2017.1.tar.gz | 2.6 kB | Without provenance | Details for staticinit-v2017.1.tar.gz |
Release files / staticinit-v2017.1.tar.gz
| Download URL | staticinit-v2017.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d368f8b02ade4dff8751b48ebebba37ff1051634946356a752f0eb0048ae3a33
|
|
BLAKE2b-256 checksum How to use checksums |
824b035e5984f3761f1efc1dbd181d1bf308600fc20b44b4e2ab0389b2914136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for staticinit 2017.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.