This API allows users to upload their files permanently onto Arweave.
Once you have selected a package from the releases, take for example
arweave_api-2023.9.7.1
:
Install with:
# Setup a virtual environment
python3 -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Install using python-pip
python -m pip install -r arweave_api-2023.9.7.1-py3-none-any.whl
arweave-api -h
arweave-api
It is recommended to run a virtual environment locally. To do this, run the following:
python3 -m venv venv
source venv/bin/activate
NB. If Python 3 is already your default interpreter, then simply call
python
.
Once the virtual environment is activated, the python
interpreter will point
to the version you set it up with. Install the code's dependencies as follows:
python -m pip install -r requirements/local.txt
NB. Local development is assumed. If you are not planning to develop from this repository, simply install
requirements/requirements.txt
.
Once you have finished, if you need to continue to work in the same shell, you can deactivate the virtual environment as follows:
deactivate
To start the server locally, run python -m src.arweave_api.arweave_api
In the root folder, start the server locally and then use tox -e py310
to
execute the unit tests.
Documentation for the API endpoints comes in two variants: