Skip to main content

Advanced Python wrapper for "treasure.cx".

Project description

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().

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

treasurecx-1.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

treasurecx-1.0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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