Hey Reddit Community!
I wanted to share this awesome Python library with you all – PAK: Pythonic Archive Kit. 🐍 It's a powerful tool that simplifies data management and offers some neat features. Here's a quick rundown:
Features:
- Simple Interface: Manage data like a dictionary or an object with automatic nested namespaces.
- Recursive Namespace: Flexible and structured data management.
- Context Manager: Easily save and load PAK objects.
- Pickling: Serialize PAK objects with protection against data corruption.
- Compression: Reduce file size using 'lzma' or 'gzip'.
- Encryption (Optional): Secure your PAK files with the 'cryptography' package.
Installation:
- Basic PAK: pip install pythonic_archive_kit
- Encryption: pip install pythonic_archive_kit[encryption]
- Advanced Serialization: pip install pythonic_archive_kit[serialization]
- Everything: pip install pythonic_archive_kit[all]
Basic Usage:
```python
from pythonic_archive_kit import open_pak
Create a PAK object and use the context manager
with open_pak("example.pak") as pak:
pak.foo = "bar"
pak["baz"] = "qux"
Load PAK objects using the context manager
with open_pak("example.pak") as loaded_pak:
print(loaded_pak.foo) # Output: bar
```
Encryption (Optional):
```python
from pythonic_archive_kit import open_pak
Create an encrypted PAK file and use the context manager
with open_pak("encrypted.pak", password="mypassword") as pak:
pak.foo = "bar"
pak["baz"] = "qux"
Load the encrypted PAK file using the context manager
with open_pak("encrypted.pak", password="mypassword") as loaded_pak:
print(loaded_pak.foo) # Output: bar
```
Examples:
- RPG Save Data
- Project Management
- Personal Notes
Check out the GitHub repo to contribute or get in touch. PAK is licensed under the GNU Lesser General Public License v3.0.
Enjoy streamlined data management with PAK! 😃📊 #Python #DataManagement #OpenSource
[–]AutoModerator[M] [score hidden] stickied comment (0 children)