Skip to main content

Python sdk for arseeding

Project description

everpay.py

Python sdk for arseeding.

Install with

pip install arseeding

Quick start

upload file python.pdf and folder public to arweave using arseeding, and pay with usdc in your everapy account.

import arseeding, everpay
# ar account
#signer = everpay.ARSigner('ar_wallet.json')
# eth account 
signer = everpay.ETHSigner(pk)
data = open('python.pdf', 'rb').read()
o = arseeding.send_and_pay(signer, 'usdc', data)
print(o['itemId'])

#file id is o['itemId'], you could get you file in url https://arseed.web3infura.io/['itemId'] or http://arweave.net/['itemId'] in a few minutes

# upload folder public
arseeding.upload_folder_and_pay(signer, 'usdc', 'public', slient=False)

Command Line Tool: arseed

arseeding.py package have an Command Line Tool arseed, to help user to upload file/folder easily.

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arseeding-0.0.6.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page