Mnemosyne
This is a dummy package to reserve the name while waiting for the scientific publication.
Dummy package
A Python package for memory-related utilities.
Installation
pip install mnemosyne
Usage
As a Python Library
from mnemosyne.core import Memory
# Create a memory store
memory = Memory()
# Store values
memory.remember("key", "value")
memory.remember("user", {"name": "John", "age": 30})
# Retrieve values
value = memory.recall("key") # Returns "value"
user = memory.recall("user") # Returns {"name": "John", "age": 30}
missing = memory.recall("missing", "default") # Returns "default"
# Remove values
memory.forget("key") # Returns True if key existed, False otherwise
# Clear all values
memory.clear()
As a Command-Line Tool
Mnemosyne provides a command-line interface for basic operations:
# Store a value
mnemosyne remember name "John Doe" --file memory.json
# Store a JSON value
mnemosyne remember user '{"name": "John", "age": 30}' --file memory.json
# Retrieve a value
mnemosyne recall name --file memory.json
# Retrieve with a default value if not found
mnemosyne recall email --default "not set" --file memory.json
# Remove a value
mnemosyne forget name --file memory.json
Development
Setup
# Clone the repository
git clone https://github.com/username/mnemosyne.git
cd mnemosyne
# Create and activate a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install for development
pip install -e .
Running Tests
python -m unittest discover
Building the Package
To build the package for distribution:
pip install build
python -m build
This will create distribution files in the dist/ directory.
See PUBLISHING.md for more details on publishing to PyPI.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Laurent-Philippe Albou
Metadata
Release files for mnemosyne 0.1.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 |
|---|---|---|---|---|
| mnemosyne-0.1.0.tar.gz | 4.4 kB | Without provenance | Details for mnemosyne-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mnemosyne-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mnemosyne-0.1.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / mnemosyne-0.1.0.tar.gz
| Download URL | mnemosyne-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe8520d6e8d22e4cf37d0c71c036aa6fce8451c0ce263b2329c47a59f2e7f3e0
|
|
BLAKE2b-256 checksum How to use checksums |
3a96b0a7bf93c0fe093fb6d851e43447924feb54d86447c4b88136d8f0af1db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|
Release files / mnemosyne-0.1.0-py3-none-any.whl
| Download URL | mnemosyne-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d65bfc2671f39c51cd6e257c76aa3d1f2a61abb7041de2867eb219ee0cc3a2c7
|
|
BLAKE2b-256 checksum How to use checksums |
f6689d9226d480f634d6cdc17dd59a135f2887e8bf5e758fd6226893586edf41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|
Security for mnemosyne 0.1.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.