Python SDK for the Opensea API
Project description
Python SDK for the OpenSea API
An unofficial Python SDK for the OpenSea API.
Features
- Typing
- All endpoints supported
- Optional API key
- WebSocket support
Installation
pip install py-opensea-sdk
Upgrade
pip install py-opensea-sdk -U
Usage
from pyopensea import OpenSeaAPI
# Create API instance
api = OpenSeaAPI('OPTIONAL-API-KEY')
# Examples
api.assets(owner='0x20481b79a4F03b624D214d23aDf5bF5f33bEB4aA')
api.contract('0x8a90cab2b38dba80c64b7734e58ee1db38b8992e')
api.listings('0x8a90cab2b38dba80c64b7734e58ee1db38b8992e', tokenID=10)
api.offers('0x8a90cab2b38dba80c64b7734e58ee1db38b8992e', tokenID=10, limit=5)
api.orders()
from datetime import datetime
api.orders('0x8a90cab2b38dba80c64b7734e58ee1db38b8992e',
listedAfter=datetime(2022, 7, 5))
# And more api endpoints supported...
Contributing
- Fork it (https://github.com/FastestMolasses/PyOpensea/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
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
py-opensea-sdk-1.0.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for py_opensea_sdk-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a954166b5e8019ee1133dffa8d5cf1e6fdb52762acd0d168f91ced2d160b839 |
|
MD5 | 5c7ee40156c5b571583495e77436d0e1 |
|
BLAKE2b-256 | 60ddfd0f12595a155dbb60e541392e8f834ffc9fd952f8c21b400291be40728c |