Relation
a python module for making relationships between classes
how to use
pip install relation and import it in your python project:
from relation import Relator
- to define a new relator (a custom class), use
class insert_name_here(Relator): - to add a relation to a relator, multiply them
- to add a child to a relator, use
parent+child- you can do
parent+[child1,child2,child3...]to add multiple children
- you can do
- to merge 2 relators, use
|to change both or|=to change the first one - to access a relator's relationships as a list of strings, use
.[insert relationship]_names
see examples for more usage
mindmap (new)
import mindmap with
from relation.map import create_graph
create graphs with create_graph. you can define the depth and whether to include relations, parents, children or self from the graph.
the function will return a pyvis network, so make sure you have pyvis installed and show the graph with graph.show.
note that non-relator objects do not work in mindmaps
roadmap
- Python File
- More examples and features
- mindmaps
- Upload to PyPi to able to be pip installed
- Swift Package
- NPM Package
Metadata
Release files for relation 1.0.3
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 | |
|---|---|---|---|---|
| relation-1.0.3.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| relation-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / relation-1.0.3.tar.gz
| Download URL | relation-1.0.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2a26cee2b6f4669757c147d6d9b814875cf735482b1b461ee02602d6265684c
|
|
BLAKE2b-256 checksum How to use checksums |
b0d77a40ffcfa67b9e5da7caae7aca62b85ca7ab9cfc79bfade9f4d546d34517
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / relation-1.0.3-py3-none-any.whl
| Download URL | relation-1.0.3-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22f6a232f5c1a97f2cf043152fde8e52c417613fd2fa78256b5ca74b85bb3001
|
|
BLAKE2b-256 checksum How to use checksums |
20302d946b5e030423de28b48d0b0b1b3cd9992dd8999e67af04e36d1fd66032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for relation 1.0.3
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.