asyncio-ipython-magic

An extension for IPython that help to run AsyncIO code in your interactive session.
Based on Gist.
Installation
Install asyncio-ipython-magic using pip:
$ pip install asyncio-ipython-magic
…or directly from the repository using the %install_ext magic command:
$ In[1]: %install_ext https://raw.githubusercontent.com/Gr1N/asyncio-ipython-magic/master/asynciomagic.py
Enjoy!
Usage
In [1]: %load_ext asynciomagic
In [2]: import asyncio
In [3]: import time
In [4]: async def foo():
...: i = 0
...: while i < 3:
...: print('time =', time.time())
...: i += 1
...: await asyncio.sleep(2)
...:
In [5]: %%async_
...: await foo()
...:
time = 1478985421.307329
time = 1478985423.309606
time = 1478985425.31514
In [6]: %await_ foo()
time = 1487097377.700184
time = 1487097379.705614
time = 1487097381.707186
In [7]:
Testing
It just works, I hope.
License
asyncio-ipython-magic is licensed under the MIT license. See the license file for details.
Metadata
Release files for asyncio-ipython-magic 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| asyncio-ipython-magic-0.0.3.tar.gz | 2.9 kB | Without provenance | Details for asyncio-ipython-magic-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asyncio_ipython_magic-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for asyncio_ipython_magic-0.0.3-py2.py3-none-any.whl |
Total release size: 7.5 kB
Release files / asyncio-ipython-magic-0.0.3.tar.gz
| Download URL | asyncio-ipython-magic-0.0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfaf9fc92ad8ae041b499454e64a110ebb70128f115482e95a6c500d3a22e995
|
|
BLAKE2b-256 checksum How to use checksums |
acafec1eb00942602c8de93f1b7111b8d9ec4fbdc9835858832409f859df2984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / asyncio_ipython_magic-0.0.3-py2.py3-none-any.whl
| Download URL | asyncio_ipython_magic-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7634b6fe250319bdb81acfc4bf9e6721e8eed313bd6e413983ec39520c83f3e2
|
|
BLAKE2b-256 checksum How to use checksums |
32d998abea0c446338956e1b9cbccf2b15e6303b5f4e68de272228af97a4db13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for asyncio-ipython-magic 0.0.3
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.