Just as the atom forms the basis of all matter, this repository will serve as the core structure for every project that follows. Scalable, efficient, and adaptable, atom
provides a framework that enables rapid development while ensuring stability and clarity for bittensor subnetworks.
The current vision of this sdk is to provide us with a backbone that all of us can benefit from, such as:
- Generic miner backbone
- Generic validator backbone
- Chain-related tools (writing, reading)
- Organic Scoring tools
If you want to use it for your subnet development, you can install using:
pip install git+https://github.com/macrocosm-os/atom.git@main
If you want to work in developer mode where changes to the codebase will become reflected in your subnet, without needing to re-pip install, use the following:
git clone ...
pip install -e PATH_TO_ATOM
The -e allows you to be in "edit" mode.
We use poetry to handle dependancies that are within atom
.
brew install [email protected]
bash install.sh
The S3Handler
class handles DigitalOcean Spaces S3 operations for content management. It manages file content retrieval and storage operations using DigitalOcean Spaces S3.
The following environment variables need to be set in your system or application environment:
S3_REGION
: The AWS region or S3-compatible region where your bucket is located.S3_ENDPOINT
: The endpoint URL for your S3-compatible service (e.g.,https://s3.amazonaws.com
for AWS S3).S3_KEY
: Your S3 access key ID.S3_SECRET
: Your S3 secret access key.