FlexObject
The FlexObject redefines your Python programming experience with its versatile base class, offering an array of dynamic attribute management capabilities, seamless runtime attribute manipulation, effortless JSON serialization, and streamlined JSON file/string handling. This library serves as a cornerstone for simplified data interaction, catering to a wide spectrum of scenarios.
Note This project has been developed based on Python 3.6 or above.
Features
- Dynamic Attribute Management: Enjoy the freedom to effortlessly manage object attributes on-the-fly, enhancing adaptability to evolving requirements.
- Runtime Attribute Addition/Removal: Streamline your workflow by dynamically adding or removing attributes during execution, minimizing disruptions.
- JSON Serialization: Seamlessly transform object attributes into the JSON format, facilitating convenient storage, sharing, or communication with external systems.
- JSON File/String Reading: Effortlessly load object attributes from JSON files or strings, expediting data retrieval and utilization.
Usage
After incorporating FlexObject into your project, the usage will follow the steps outlined below.
from flex_object import FlexObject
# Create a FlexObject instance
flex_obj = FlexObject()
# Set attributes dynamically
flex_obj.set(name='David Santana', github='davidsantana06', age=21)
# Serialize attributes to JSON string
json_str = flex_obj.dumps_json()
# Deserialize attributes from JSON string
flex_obj.loads_json(json_str)
# Store attributes in a JSON file
flex_obj.dump_json('data.json')
# Load attributes from a JSON file
flex_obj.load_json('data.json')
License
This project adopts the MIT License, which allows you to use and make modifications to the code as you wish. The only thing I ask is that proper credit is given, acknowledging the effort and time I invested in building it.
Metadata
Release files for flex-object 1.0.0
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 |
|---|---|---|---|---|
| flex-object-1.0.0.tar.gz | 4.9 kB | Without provenance | Details for flex-object-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flex_object-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for flex_object-1.0.0-py3-none-any.whl |
Total release size: 10.3 kB
Release files / flex-object-1.0.0.tar.gz
| Download URL | flex-object-1.0.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5971c5ea1287a6d64b902cb2010a59db2414067f6f7b485a622e7f1ae61ddd5f
|
|
BLAKE2b-256 checksum How to use checksums |
504507b2f534441133467f03d8ca5f2e35f54aa7a89b0c86087a7a1c7b84f352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
|
Release files / flex_object-1.0.0-py3-none-any.whl
| Download URL | flex_object-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a882f5a50b0857f25bd28c74ec63bc2d8392c05b2f2607d4a37cfbbc917e983
|
|
BLAKE2b-256 checksum How to use checksums |
aecb0341c91ccc36c3850da53e1a59200a38441d694ec90342fa96e2c14ea706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
|
Security for flex-object 1.0.0
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.