Metadata-Version: 2.1
Name: cybertensor
Version: 0.1.6
Summary: cybertensor
Home-page: https://github.com/cybercongress/cybertensor
Author: cyberhead
Author-email: 
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9.6, <3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp==3.9.0b0
Requires-Dist: ansible==6.7.0
Requires-Dist: ansible_vault==2.1.0
Requires-Dist: backoff
Requires-Dist: black==23.7.0
Requires-Dist: cryptography==42.0.0
Requires-Dist: ddt==1.6.0
Requires-Dist: grpcio
Requires-Dist: fuzzywuzzy>=0.18.0
Requires-Dist: fastapi==0.99.1
Requires-Dist: loguru==0.7.0
Requires-Dist: munch==2.5.0
Requires-Dist: netaddr
Requires-Dist: numpy
Requires-Dist: msgpack-numpy-opentensor==0.5.0
Requires-Dist: nest_asyncio
Requires-Dist: prometheus-client==0.19.0
Requires-Dist: pycryptodome<4.0.0,>=3.18.0
Requires-Dist: pyyaml
Requires-Dist: password_strength
Requires-Dist: pydantic!=1.8,!=1.8.1,<2.0.0,>=1.7.4
Requires-Dist: PyNaCl<=1.5.0,>=1.3.0
Requires-Dist: pytest-asyncio
Requires-Dist: python-Levenshtein
Requires-Dist: pytest
Requires-Dist: retry
Requires-Dist: requests
Requires-Dist: rich
Requires-Dist: setuptools<=65.6.3
Requires-Dist: shtab==1.6.5
Requires-Dist: termcolor
Requires-Dist: torch>=1.13.1
Requires-Dist: tqdm
Requires-Dist: uvicorn==0.22.0
Requires-Dist: wheel
Requires-Dist: cosmpy>=0.9.1
Requires-Dist: ecdsa<0.15
Requires-Dist: py-bip39-bindings
Requires-Dist: urllib3==1.26.15
Provides-Extra: dev
Requires-Dist: pytest==7.2.0; extra == "dev"
Requires-Dist: pytest-mock==3.12.0; extra == "dev"
Requires-Dist: pytest-split==0.8.0; extra == "dev"
Requires-Dist: pytest-xdist==3.0.2; extra == "dev"
Requires-Dist: pytest-rerunfailures==10.2; extra == "dev"
Requires-Dist: coveralls==3.3.1; extra == "dev"
Requires-Dist: pytest-cov==4.0.0; extra == "dev"
Requires-Dist: ddt==1.6.0; extra == "dev"
Requires-Dist: hypothesis==6.81.1; extra == "dev"
Requires-Dist: flake8==7.0.0; extra == "dev"
Requires-Dist: mypy==1.8.0; extra == "dev"
Requires-Dist: types-retry==0.9.9.4; extra == "dev"

# CYBERTENSOR
<p>
    <img alt="GitHub" src="https://img.shields.io/github/license/cybercongress/cybertensor">
    <img alt="Python" src="https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue">
    <img alt="PyPI - Version" src="https://img.shields.io/pypi/v/cybertensor">
</p>

## [Step-by-step guide](./docs/basic-flow.md)
## [Yuma Consensus](https://github.com/opentensor/subtensor/blob/f0a3da50fd7e949ca0d5284200cb80fdd25a79e3/docs/consensus.md)
## [Deployed contract](https://deploy-preview-1081--rebyc.netlify.app/contracts/pussy1ddwq8rxgdsm27pvpxqdy2ep9enuen6t2yhrqujvj9qwl4dtukx0s8hpka9)

## Game of Tensors subnet ideas:
1. Subnet for ambassadors
2. Subnet for knowledge domains
3. Subnet for network infrastructure operators
4. Subnet for relayers infrastructure operators
5. Subnet for IPFS nodes operators
6. Your idea here

```When? Soon```


## Install

0. With pip:
```
pip3 install cybertensor
```

1. From source:
```bash
git clone https://github.com/cybercongress/cybertensor.git
python3 -m pip install -e cybertensor/
```
2. To test your installation, type:
```bash
ctcli --help
```
or using python
```python
import cybertensor
```

## Space Pussy setup

1. Clone:
```bash
git clone https://github.com/cybercongress/cybertensor.git
cd cybertensor
```
2. [Optional] Create and activate a virtual environment:
```bash
python3 -m venv venv
. venv/bin/activate
```
3. Install from the source
```bash
python3 -m pip install -e .
```

4. To test your installation, type:
```bash
ctcli --help
```
or using python
```python
import cybertensor
```

## Dev setup
1. Use localbostrom:
```bash
git clone https://github.com/cybercongress/localbostrom
cd localbostrom
./hard_restart.sh
```
2. Add mnemonics from [localbostrom's](https://github.com/cybercongress/localbostrom?tab=readme-ov-file#accounts) README to local keystore:
```bash
cyber keys add validator --recover --home ./home
```
3. Deploy code and instantiate contract:
```bash
cyber tx wasm store cybernet.wasm --from validator --home ./home --chain-id localbostrom --gas 8000000 --broadcast-mode block -y --keyring-backend test
cyber tx wasm instantiate 1 "{}" --from validator --home ./home --chain-id localbostrom --gas 5000000 --label cybernet1 --admin bostrom1phaxpevm5wecex2jyaqty2a4v02qj7qm5n94ug --broadcast-mode block -y --keyring-backend test
```
4. Send tokens to contract and activate (with dmn):
```bash
cyber tx bank send validator bostrom14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sww4mxt 1000000000000boot --home ./home --chain-id localbostrom --gas 500000 --broadcast-mode block -y --keyring-backend test
cyber tx wasm execute bostrom14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sww4mxt '{"activate":{}}' --from validator --home ./home --chain-id localbostrom --gas 5000000 --broadcast-mode block -y --keyring-backend test
```
5. Add mnemonics from localbostrom's README to ctcli keystore:
```bash
ctcli w regen_hotkey
ctcli w regen_coldkey
```
6. Add contract and schemas to .cybertensor/contract dir:
```bash
tree ~/.cybertensor/contract 
```
```
/Users/cyberhead/.cybertensor/contract
├── cybernet.wasm
└── schema
    ├── execute.json
    ├── instantiate.json
    ├── query.json
    └── schema.json
````
7. Register network:
```bash
ctcli s create
```
