Pre-release
This release is a pre-release and may not be stable for production use.
ModuleMeta
Python modules are hard. modulemeta attempts to make them easier to write in the interpreter.
Basic Usage
>>> from modulemeta import Module
>>> class Wat(metaclass=Module):
... _ermelon = 5
...
... def ermelon(): # type: ignore[misc]
... return _ermelon
...
>>> Wat.ermelon()
5
>>> Wat
<module 'Wat'>
Inheritance
Shockingly, modules cannot be inherited from, therefore they are treated as metaclasses:
from modulemeta import Module
class Wat(metaclass=Module):
pass
class Wat2(metaclass=Wat): # type: ignore[misc]
pass
Metadata
Release files for modulemeta 0.2.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| modulemeta-0.2.0a2.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modulemeta-0.2.0a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / modulemeta-0.2.0a2.tar.gz
| Download URL | modulemeta-0.2.0a2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
804362dd3ca30882ff8fd30acb1deda3dabc022713885913088c17c337b0c334
|
|
BLAKE2b-256 checksum How to use checksums |
6f0a5fc076eb8a42065e910d11a0c8748ed022e9f693999f30ca2841c8017900
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / modulemeta-0.2.0a2-py3-none-any.whl
| Download URL | modulemeta-0.2.0a2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20ec1cd4c86c3e2eaffa2e3626dd4ad6e00ae1dec49619cc2f6937b318ac26b1
|
|
BLAKE2b-256 checksum How to use checksums |
ab58b508db1004bc5d97cd8be22ea80025bf7ecf8416cdeb3789ccbab1c9d8ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|