Bodo IPython Magic
The Bodo IPython Magic is used to write simpler Python code with bodo. For example, you can take the following code:
import bodo
import pandas as pd
@bodo.jit
def test():
return pd.read_parquet('sample.pq')
df = test()
and (using the %%bodo magic) convert it to:
%%bodo
import pandas as pd
df = pd.read_parquet('sample.pq)
Why a Magic?
When presenting bodo, we like to use very simple examples like loading a CSV file, performing some simple operations, and so on. However, these cases generally look longer and more compilected in comparison to competing solutions like pyspark, dask, ray, and so on. This magic is intended to target these issues.
Arguments
%bodo [-v] [-c] [-d] [-o [OUTPUTS [OUTPUTS ...]]]
optional arguments:
-v, --verbose Print Verbose and Debugging Info
-c, --cache Enable Caching on the Wrapped Function
-d, --dry-run Do Not Execute Any Code or Wrapper Function
-o <[OUTPUTS [OUTPUTS ...]]>, --outputs <[OUTPUTS [OUTPUTS ...]]>
Variables to Output from the Wrapped Function (default: Returns All Defined Variables)
Supported Features
- Inserts
import bodoautomatically - Imports
- Automatically adds the
@bodo.jitdecorator to any function in the code cell
Metadata
Release files for bodo-magic 1.1.0
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 |
|---|---|---|---|---|
| bodo_magic-1.1.0.tar.gz | 10.1 kB | Without provenance | Details for bodo_magic-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bodo_magic-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for bodo_magic-1.1.0-py3-none-any.whl |
Total release size: 19.6 kB
Release files / bodo_magic-1.1.0.tar.gz
| Download URL | bodo_magic-1.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3a9c2868256398fb8a18d62e7e21af4a94c11782dfefe5031a4e1cd78c5b916
|
|
BLAKE2b-256 checksum How to use checksums |
d48a62a7cc02c81036ee339d19f0deeee11a7b00e270161278c182b2b78474af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 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.7
|
Release files / bodo_magic-1.1.0-py3-none-any.whl
| Download URL | bodo_magic-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a563eaa37e0d333edcd06e1d3c0faacd9f119ed058bc4ad8be488c1da7c7205b
|
|
BLAKE2b-256 checksum How to use checksums |
0b921eb34db7cb3da10da49349040d5def28bae3fc8f4f6fd183b55bdc5daaf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 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.7
|
Security for bodo-magic 1.1.0
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.