Skip to content

NearDeFi/shade-agent-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shade-agent-py

This is a lightweight python wrapper around the shade-agent-api.

Usage

For example usage see the test

Testing locally

Fill out the environment variables and open Docker

Set up virtual environment and install dependencies

python -m venv venv
source venv/bin/activate 
pip install -e .

Set the contract prefix to ac-proxy.

Run the CLI

cd test
shade-agent-cli

In another terminal run the tests

python test/src/app.py

Testing on Phala

Set the contract prefix to ac-sandbox.

Build the test image (change your docker ID for your own)

docker build --no-cache --platform linux/amd64 -t pivortex/my-app:latest -f test/Dockerfile . && docker push pivortex/my-app:latest

Edit the app codehash in your .env.development.local and docker-compose.yaml files

Run the CLI without building

cd test
shade-agent-cli --no-build

Publishing

Build the project

python -m build

Test on TestPyPI

python -m twine check dist/*

Publish to TestPyPI

python -m twine upload --repository testpypi dist/*

Publish to PyPI

python -m twine upload dist/*

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published