git init# duckstruct
Dependencies: None
Developer: Emmanouil (Manios) Krasanakis
Contant: maniospas@hotmail.com
Quickstart
from duckstruct import TypeListener
import numpy as np
x = np.array([1, 2, 3])
y = np.array([5, 6])
z = np.array([7.])
x = TypeListener(x)
y = TypeListener(y)
z = TypeListener(z)
print(x)
print(x+1+y.sum()+z.sum())
After running the code, you can show the structure a new variable should have to replace all others in yaml format.
print(x.type() & y.type() & z.type())
This yields the minimum necessary structure for the code to run:
object:
__str__:
returns:
class: str
__add__:
returns:
class: ndarray
sum:
returns:
- class: int32
- class: float64
Metadata
Release files for duckstruct 0.0.1
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 |
|---|---|---|---|---|
| duckstruct-0.0.1.tar.gz | 6.1 kB | Without provenance | Details for duckstruct-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| duckstruct-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for duckstruct-0.0.1-py3-none-any.whl |
Total release size: 11.8 kB
Release files / duckstruct-0.0.1.tar.gz
| Download URL | duckstruct-0.0.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1346f5b4e7840abef2204c5d5fe8b09d1afcfbd1e9d9f3659753626d05d466dd
|
|
BLAKE2b-256 checksum How to use checksums |
8bcada521321febeb3ab87f9e0c3c6e7a7171db4453b9eb54f83195b4f76e0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / duckstruct-0.0.1-py3-none-any.whl
| Download URL | duckstruct-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f6be2fb1f38dcc7232b99979944eb4f4da70c139cf66d8d3f0e6f44a2153058
|
|
BLAKE2b-256 checksum How to use checksums |
639f76a9b69916924cb3c439c9712a7b440cfeb0cd506e5df77fced897b0473e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for duckstruct 0.0.1
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.