
How to Upload Files on Arweave With Python
Throughout history, the need to store information has been crucial, both for individuals and organizations. Traditionally, paper documents and photographs were kept in physical folders and secured at home. The invention of computers revolutionized storage, transitioning from floppy disks to CDs, USBs, hard drives, and finally, solid-state drives. Recognizing the growing demand for data storage, the internet embraced cloud services, which emerged rapidly like mushrooms. Massive data centers, l...

Meet AO: The Hyper-Parallel Computer
The ao hyper-parallel computer hit the scene in February 2024 and is already making waves among developers worldwide. This innovative system takes inspiration from the actor model, enabling processes to run concurrently and communicate seamlessly without waiting for each other. Each processing unit within ao adheres to a core data protocol that runs on Arweave blockchain-like decentralized storage solution. This distributed network of nodes creates a unified experience for users, presenting a...

Exploring Doug DeMuro's Cars Dataset
This analysis is part of a data challenge brought by Desights, a platform built by the Ocean Protocol to . If you’re not familiar with the latter, Ocean Protocol is paving the way for a new data economy using the power of blockchain. They provide several services, like earning and trading mechanisms, data challenges, and the Ocean Market, where datasets, reports, algorithms and more, can be published on Web3 decentralized storage infrastructures like Arweave and IPFS. Desights team is focused...
Where Data Science and AI, converge with Web3. Build 🔨 | Write ✏️ | Code 💻



How to Upload Files on Arweave With Python
Throughout history, the need to store information has been crucial, both for individuals and organizations. Traditionally, paper documents and photographs were kept in physical folders and secured at home. The invention of computers revolutionized storage, transitioning from floppy disks to CDs, USBs, hard drives, and finally, solid-state drives. Recognizing the growing demand for data storage, the internet embraced cloud services, which emerged rapidly like mushrooms. Massive data centers, l...

Meet AO: The Hyper-Parallel Computer
The ao hyper-parallel computer hit the scene in February 2024 and is already making waves among developers worldwide. This innovative system takes inspiration from the actor model, enabling processes to run concurrently and communicate seamlessly without waiting for each other. Each processing unit within ao adheres to a core data protocol that runs on Arweave blockchain-like decentralized storage solution. This distributed network of nodes creates a unified experience for users, presenting a...

Exploring Doug DeMuro's Cars Dataset
This analysis is part of a data challenge brought by Desights, a platform built by the Ocean Protocol to . If you’re not familiar with the latter, Ocean Protocol is paving the way for a new data economy using the power of blockchain. They provide several services, like earning and trading mechanisms, data challenges, and the Ocean Market, where datasets, reports, algorithms and more, can be published on Web3 decentralized storage infrastructures like Arweave and IPFS. Desights team is focused...
Share Dialog
Share Dialog
Where Data Science and AI, converge with Web3. Build 🔨 | Write ✏️ | Code 💻
Commune, is a set of development tools that work very similarly to Bittsensor. Both aim to achieve a decentralized AI system through Blockchain technology.
The Commune protocol is fully open-source and incentivizes developers to create modular, interoperable modules, that can be used locally or remotely. These so-called modules can wrap up machine-learning tools in structured folders. Enabling AI models to be easily shareable, and participants can be rewarded with the blockchain’s native token ($COM).
To start using the commune repository, you first need to install the following dependencies on your Linux machine:
sudo apt update
sudo apt install python3-pip
sudo apt install git
sudo apt install npm
sudo npm install pm2
You’re now ready to clone the Git repository:
git clone https://github.com/commune-ai/commune.git
In case you don’t have docker installed:
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt update
sudo apt install docker.io make -y
sudo systemctl start docker
sudo systemctl enable docker
Then start the Docker container (this might take a while):
cd commune
make up
Install commune with the following pip command:
pip install -e ./
Now go to the docker container:
make enter
We’ll continue from the container, but if you want to do git pull of the project, you need to do exit.
Once you have done the setup, you can now run one of the following commands to register a validator.
c vali register tag=<validator_name>
or
c register vali::<validator_name>
The output should look like this:
Launching class:Vali name:vali::<validator_name> fn:serve mode:pm2
📡 Registering vali::<validator_name> with address 85.52.243.11:50082 replacing None
✅ Registered vali::<validator_name> with address 85.52.243.11:50082
{'success': True, 'message': 'Server vali::<validator_name> registered to commune', 'server_name': 'vali::<validator_name>
In case you want to register it on a Python file, do the following:
import commune as c
c.module('vali').register(tag='<validator_name>')
The validator isn't registered yet! You need to stake some $COM tokens first. For that, continue reading.
⚠️ Note: If you want to stop your validator for some reason to the following:
c kill vali::<validator_name>
Create a key to transfer funds to your validator.
c add_key <my_key>
You should get something like this:
{
'crypto_type': 1,
'seed_hex': 'ff7bc...',
'derive_path': None,
'path': '<my_key>',
'ss58_format': 42,
'public_key': '6444e...',
'ss58_address': '5ELB7R...',
'private_key': 'e6a4299f7d...',
'mnemonic': 'aim border ...'
}
Don’t forget to save the mnemonic phrase, to recover your key (aka wallet) in the future. To recover do this:
c add_key <my_key> mnemonic=<your_key_mnemonic>
To list all keys (including validators):
c keys
To remove keys:
c rm_key <my_key>
To register the validator you need to stake 100 tokens, and for that, you need to buy them on Commune’s Discord.
Once on Discord, you’ll find the channel otc and you can use the acronym WTB (Want to Buy) to ask for tokens. Example: WTB 5K / $2.2.
Then you’ll be contacted to provide an address. You can give the address of one of your keys.
Now if you do c get_balance <my_key> you should see your tokens.
The validator also has its own address, to know which one is, you can run the following in the terminal:
c key_stats vali::<validator_name>
You should get something like this:
{
'staketo': [],
'total_stake': 0,
'registered': False,
'balance': 2.0,
'addresss': '5CPZE...'
}
In Python:
c.key_stats('vali::<validator_name>')
To stake $COM tokens, we use one of the keys we’ve generated and the validator’s address that we got after doing c key_stats vali::<validator_name>.
c stake <my_key> amount 5CPfg6...
Your validator should look like this now:
{
'staketo': [],
'total_stake': 100,
'registered': True,
'balance': 2.0,
'addresss': '5CPZE...'
}
⚠️ Note: If you didn’t manage to register your validator, you can try to do c s loop, which looks for unregistered validators.
Commune AI is a very young project, and steps may change over time, the best way is to reach their Discord channel for all sorts of questions, and the GitHub repository. See below other sources:
Commune, is a set of development tools that work very similarly to Bittsensor. Both aim to achieve a decentralized AI system through Blockchain technology.
The Commune protocol is fully open-source and incentivizes developers to create modular, interoperable modules, that can be used locally or remotely. These so-called modules can wrap up machine-learning tools in structured folders. Enabling AI models to be easily shareable, and participants can be rewarded with the blockchain’s native token ($COM).
To start using the commune repository, you first need to install the following dependencies on your Linux machine:
sudo apt update
sudo apt install python3-pip
sudo apt install git
sudo apt install npm
sudo npm install pm2
You’re now ready to clone the Git repository:
git clone https://github.com/commune-ai/commune.git
In case you don’t have docker installed:
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt update
sudo apt install docker.io make -y
sudo systemctl start docker
sudo systemctl enable docker
Then start the Docker container (this might take a while):
cd commune
make up
Install commune with the following pip command:
pip install -e ./
Now go to the docker container:
make enter
We’ll continue from the container, but if you want to do git pull of the project, you need to do exit.
Once you have done the setup, you can now run one of the following commands to register a validator.
c vali register tag=<validator_name>
or
c register vali::<validator_name>
The output should look like this:
Launching class:Vali name:vali::<validator_name> fn:serve mode:pm2
📡 Registering vali::<validator_name> with address 85.52.243.11:50082 replacing None
✅ Registered vali::<validator_name> with address 85.52.243.11:50082
{'success': True, 'message': 'Server vali::<validator_name> registered to commune', 'server_name': 'vali::<validator_name>
In case you want to register it on a Python file, do the following:
import commune as c
c.module('vali').register(tag='<validator_name>')
The validator isn't registered yet! You need to stake some $COM tokens first. For that, continue reading.
⚠️ Note: If you want to stop your validator for some reason to the following:
c kill vali::<validator_name>
Create a key to transfer funds to your validator.
c add_key <my_key>
You should get something like this:
{
'crypto_type': 1,
'seed_hex': 'ff7bc...',
'derive_path': None,
'path': '<my_key>',
'ss58_format': 42,
'public_key': '6444e...',
'ss58_address': '5ELB7R...',
'private_key': 'e6a4299f7d...',
'mnemonic': 'aim border ...'
}
Don’t forget to save the mnemonic phrase, to recover your key (aka wallet) in the future. To recover do this:
c add_key <my_key> mnemonic=<your_key_mnemonic>
To list all keys (including validators):
c keys
To remove keys:
c rm_key <my_key>
To register the validator you need to stake 100 tokens, and for that, you need to buy them on Commune’s Discord.
Once on Discord, you’ll find the channel otc and you can use the acronym WTB (Want to Buy) to ask for tokens. Example: WTB 5K / $2.2.
Then you’ll be contacted to provide an address. You can give the address of one of your keys.
Now if you do c get_balance <my_key> you should see your tokens.
The validator also has its own address, to know which one is, you can run the following in the terminal:
c key_stats vali::<validator_name>
You should get something like this:
{
'staketo': [],
'total_stake': 0,
'registered': False,
'balance': 2.0,
'addresss': '5CPZE...'
}
In Python:
c.key_stats('vali::<validator_name>')
To stake $COM tokens, we use one of the keys we’ve generated and the validator’s address that we got after doing c key_stats vali::<validator_name>.
c stake <my_key> amount 5CPfg6...
Your validator should look like this now:
{
'staketo': [],
'total_stake': 100,
'registered': True,
'balance': 2.0,
'addresss': '5CPZE...'
}
⚠️ Note: If you didn’t manage to register your validator, you can try to do c s loop, which looks for unregistered validators.
Commune AI is a very young project, and steps may change over time, the best way is to reach their Discord channel for all sorts of questions, and the GitHub repository. See below other sources:

Subscribe to Marco Rodrigues

Subscribe to Marco Rodrigues
<100 subscribers
<100 subscribers
No activity yet