fromless
Create objects that ban unqualified imports.
Example
In demo.py:
from fromless import MustBeQualified # note the irony
class Qualified(MustBeQualified):
def __init__(self):
super().__init__()
And at your REPL:
>>> from demo import Qualified
>>> Qualified()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/chrisjrn/src/goodbye_to_from/src/test.py", line 5, in __init__
super().__init__()
File "/Users/chrisjrn/src/goodbye_to_from/src/fromless/gtf.py", line 12, in __init__
MustBeQualified._error_if_unqualified(traceback)
File "/Users/chrisjrn/src/goodbye_to_from/src/fromless/gtf.py", line 42, in _error_if_unqualified
raise Exception(f"Class {enclosing_class} was instantiated from an alias.")
Exception: Class Qualified was instantiated from an alias.
>>> import demo
>>> demo.Qualified()
<demo.Qualified object at 0x101509dc0>
Perfect.
Metadata
Release files for fromless 0.0.2
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 |
|---|---|---|---|---|
| fromless-0.0.2.tar.gz | 2.9 kB | Without provenance | Details for fromless-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fromless-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for fromless-0.0.2-py3-none-any.whl |
Total release size: 6.7 kB
Release files / fromless-0.0.2.tar.gz
| Download URL | fromless-0.0.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cc0ee80c2e23c40be5c514f6bd3ce67ad2d13e1f3101bf47ad7b9a0dba71eed
|
|
BLAKE2b-256 checksum How to use checksums |
399f1ad393ee4fa6299b9ab98167b090dfb4b8b9c76424e9a9ef2b3b6867890f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Release files / fromless-0.0.2-py3-none-any.whl
| Download URL | fromless-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f0f116215e2d91ac8a760b2d7feada47058acda633baac58ed3279f612a0087
|
|
BLAKE2b-256 checksum How to use checksums |
fd936859e440fcf8b7eca01b0a06e5762a712a6ffa19b2a77c5604f3e0475e04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Security for fromless 0.0.2
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.