cereal
Parallelization requires tools to reference data without overuse of memory. cereal allows you to reference PyObjects to pointers without creating a deep copy in memory. An extension for ZeroIntensity's pointers.py.
cereal:
pointers.py:
import numpy as np
from cereal import eat
x = [1, 2, 3, 4]
yum = eat(x, its = 4, np.array, copy = False)
>> yum
>> array([<pointer to list object at 0x113b3edc0>,
<pointer to list object at 0x113b3edc0>,
<pointer to list object at 0x113b3edc0>,
<pointer to list object at 0x113b3edc0>], dtype=object) # 4 pointers to the original object
>> (~yum[0])[0]
>> 1
yum[0][0] = 4
>> x # the original object
>> [4, 2, 3, 4] # it changed!
Metadata
Release files for cereal-py 1.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 |
|---|---|---|---|---|
| cereal-py-1.0.3.tar.gz | 4.0 kB | Without provenance | Details for cereal-py-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cereal_py-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for cereal_py-1.0.3-py3-none-any.whl |
Total release size: 8.2 kB
Release files / cereal-py-1.0.3.tar.gz
| Download URL | cereal-py-1.0.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb68565fcc4c9fef06d8fb2a57b535e18b14bb05c84fca7bd878f2308bf2a515
|
|
BLAKE2b-256 checksum How to use checksums |
a7a67967b31fe18a0cde86f4bde88159df016c7dfd18d559f72e671ad0df9b0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.0
|
Release files / cereal_py-1.0.3-py3-none-any.whl
| Download URL | cereal_py-1.0.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ce72d49af1b24fbd87bec0c0ac936d8fddf170f3c31441a85c6598f127dd2cf
|
|
BLAKE2b-256 checksum How to use checksums |
ca1258b7e6ce453dc5b2d6cafe5682c2d6c1968055c13888b0dfed359362c0c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.0
|
Security for cereal-py 1.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.