Skip to main content

Async-Tio

This is a simple unofficial async Api-wrapper for tio.run

Installation

$ py -m pip install async_tio

Install Latest

$ py -m pip install git+https://github.com/Tom-the-Bomb/async-tio.git

Example

# assuming you are already inside an async environment and have already imported everything
# to instantiate
# recommended to have a global class if you are going to run .execute more than 1 time throughout the program
# alternatively you can use the async context manager if it's a one time use:
# async with async_tio.Tio() as tio: ...
tio = async_tio.Tio() # Optional 'loop' and 'session' kwargs etc. if needed

# to execute
output = await tio.execute("print('')", language="python3") # pass in other optional kwargs if needed

print(str(output)) # the formatted output along with the stats
print(output.stdout) # the output by itself
print(int(output)) # returns the exit status

# print(vars(output).keys())
# -> dict_keys(['token', 'output', 'stdout', 'real_time', 'user_time', 'sys_time', 'cpu_usage', 'exit_status'])
# all the attributes of the response object you can access

Metadata

Release files for async-tio 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for async-tio 1.3.2
File Interpreter ABI Platform Actions
async_tio-1.3.2-py3-none-any.whl Python 3 none any Details for async_tio-1.3.2-py3-none-any.whl

Release files / async_tio-1.3.2-py3-none-any.whl

Download URL async_tio-1.3.2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b12816f90747b8d7ff6cfb03202f6dc9e06949f08be48278bbe722d9d1bd34d
BLAKE2b-256 checksum
How to use checksums
f96cc72bbb1bf9dc2b140ce25f66882b5ad3d241acf43b63a82997e098641708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.0

Security for async-tio 1.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page