treasurecx
Advanced Python wrapper for "treasure.cx".
Synchronous Usage
import treasurecx
account_types = treasurecx.account_types() # Get account types
print(account_types)
account = treasurecx.generate(type=1) # Generate a Minecraft account
print(account) # {'status': '...', 'message': '...'}
Asynchronous Usage
import treasurecx.asynchronous
account_types = await treasurecx.asynchronous.account_types() # Get account types
print(account_types)
account = await treasurecx.treasure_async.generate(type=1) # Generate a Minecraft account
print(account) # {'status': '...', 'message': '...'}
Synchronous Commands
account_types
treasurecx.account_types(source="API")
Return a list of account types.
Arguments:
[source]: The app/website from which the user generated a link (e.g. Discord) || "API" by default
generate
treasurecx.generate(type_=1, source="API")
Generate an account with the provided type.
Arguments:
[type_]: Type of account you want to generate (int) || 1 (Minecraft) by default
[source]: The app/website from which the user generated a link (e.g. Discord) || "API" by default
Account types can be fetched using treasurecx.treasurecx.account_types().
Asynchronous Commands
account_types
await treasurecx.account_types(source="API")
Return a list of account types.
Arguments:
[source]: The app/website from which the user generated a link (e.g. Discord) || "API" by default
generate
await treasurecx.generate(type_=1, source="API")
Generate an account with the provided type.
Arguments:
[type_]: Type of account you want to generate (int) || 1 (Minecraft) by default
[source]: The app/website from which the user generated a link (e.g. Discord) || "API" by default
Account types can be fetched using treasurecx.treasurecx.account_types().
Release files for treasurecx 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| treasurecx-1.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| treasurecx-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / treasurecx-1.0.1.tar.gz
| Download URL | treasurecx-1.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dc3c33d6711746fa44fdb4fa234ad83ea9927a982f9a78e5b5cc6c8ce71eb97
|
|
BLAKE2b-256 checksum How to use checksums |
c68ac186d3c71b385c6c5c292436df00a2f852dbcefa13752d6f0b0b2c50d12d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1
|
Release files / treasurecx-1.0.1-py3-none-any.whl
| Download URL | treasurecx-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e485bf1d43707874bacec1b1920a3152345b8533357ff1f9b1750d15a9ba4c47
|
|
BLAKE2b-256 checksum How to use checksums |
3205609ea7eec6daa8803772f37d6e6d1313e5fe5b3016024464ca2091581760
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1
|