Skip to main content

A Python client for https://web3.storage

Project description

py-w3

This is a reimplementation of the web3.storage HTTP api.

There is an existing implementation at https://pypi.org/project/web3storage, but at the time of writing it did not have an associated public source repository.

This project's source repository is at https://github.com/xloem/py-w3storage, and auto-merging of pull requests is enabled.

The API is open to any changes or improvements.

The official library at https://www.npmjs.com/package/web3.storage could be used as a baseline for such improvements.

examples

import w3storage

w3 = w3storage.API(token='w3-api-token')

some_uploads = w3.user_uploads(size=25)

# limited to 100 MB
helloworld_cid = w3.post_upload(('hello_World.txt', 'Hello, world.'))
readme_cid = w3.post_upload(('README.md', open('README.md', 'rb')))

# larger files can be uploaded by splitting them into .cars.

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

w3storage-0.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

w3storage-0.0.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file w3storage-0.0.1.tar.gz.

File metadata

  • Download URL: w3storage-0.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for w3storage-0.0.1.tar.gz
Algorithm Hash digest
SHA256 04b6946e5a4b0be9b3e867992b84450425564fd93e98e4d30afe70315251c69c
MD5 3e3c749a8da78d1ee61bf9f5a36236cf
BLAKE2b-256 a50feff461fd7027e6776d1329d704ed0617fb317cb9ff0571754623cb0b3455

See more details on using hashes here.

File details

Details for the file w3storage-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: w3storage-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for w3storage-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c600a683742a72f9c29780ecddc6698f69580a2a546a32c0ab67678b07a71208
MD5 d5b445bd9e0b9cac51bf7d5a220c0261
BLAKE2b-256 c699494805c96c2e1d9654cf57adfc4ab0fe28e478c3cc2195b8364accdd7a9c

See more details on using hashes here.

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