
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Python package for structuredly managing directional relationship between objects.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Python package for structuredly managing directional relationship between objects.
Though it uses allegory of 'family tree', it doesn't implement 'tree data structure'.
Alternatively, relationship in default is drawn by organizing Directed Acyclic Graph(DAG).
This means that there is a loop-less hierarchy in between members.
Not like tree, member of this data structure can have multiple parents
thus the package is named 'poly'family
Graph organizing members is not a concrete object.
All participants store its vicinity relationship in itself.
By default relationship is build bidirectional - parent knows about children while
children knows about parent. But this can be manually tweaked using
lower level methods like fm_append
fm_remove
.
Methods use prefix 'fm_' to be distinguished.
Use pip
to install the package.
pip install polyfamily_tree
from polyfamily_tree import *
class MyMember(FamilyMember): # inherit `FamilyMember`
def __init__(self):
super().__init__() # vital for initiating required attributes
# your __init__ code below
...
a, b = MyMember(), MyMember()
a.fm_append_member(parent=a, child=b) # build relationship
print(b.fm_get_parents())
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
https://github.com/grasshopperTrainer/polyfamily_tree
For any questions :
grasshoppertrainer@gmail.com
MIT
FAQs
Python package for structuredly managing directional relationship between objects.
We found that polyfamily-tree demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.