wrapper library for opensea api
Project description
Opensea API
An API wrapper library for opensea api.
Installation
pip3 install opensea
Usage
Retrieving assets:
from opensea import get_assets
# This will return a list of assets which you can iterate and get the needed data
asset_list = get_assets(limit=10, verified_only=False)
asset = asset_list[0] # Get the first asset obejct from the list
print(asset.name)
print(asset.description)
print(asset.asset_url)
print(asset.get_floor_price()) # Floor price of the collection
Retrieving bundles:
from opensea import get_bundles
# This will return a list of assets which you can iterate and get the needed data
bundles_list = get_bundles(limit=10)
bundle = bundles_list[0] # Get the first asset obejct from the list
print(bundle.slug)
print(bundle.assets[0].name)
Retrieving stats from specific collection:
from opensea import get_collection_stats
# This will return a CollectionStats Object
stats = get_collection_stats(collection="doodles-official")
print(stats.count)
print(stats.num_owners)
print(stats.floor_price)
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
opensea-0.2.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file opensea-0.2.0.tar.gz
.
File metadata
- Download URL: opensea-0.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b04699bde7673681e7f33bc4f801bf5589279f05c03ebc4d2f5489f4afbdbc |
|
MD5 | 33561d9b7d11c6c6e32d999c813064c4 |
|
BLAKE2b-256 | 164ad4298e16698a92773966c85959e435781fb383e475a54a39bf465ce57606 |
File details
Details for the file opensea-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: opensea-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9280b3e0e0da50058470a74ec756a6ed904a9704599b1acc6e0b0ec6929ee2d3 |
|
MD5 | 717d4747e59c2f8adec8890eb46f9a03 |
|
BLAKE2b-256 | 90e005f8ae65023d2c3b2cac6f663b1991363543ef3f4a00785d135564231181 |