scalaps
See blog post, Introducing scalaps: Scala-inspired data structures for Python to learn about using this library.
A functional, object-oriented approach for working with sequences and collections. Also similar to Java Streams. Hope you find they simplify your code by providing a plethora of common algorithms for working with sequences and collections.
Example
from scalaps import ScSeq
(ScSeq(range(10))
.map(lambda x: x+3)
.filter(lambda x: x%2==0)
.group_by(lambda x: x%3)
.items()
.for_each(print))
Output
(1, ScList([4, 10]))
(0, ScList([6, 12]))
(2, ScList([8]))
Examples
See examples/ directory for additional examples of using scalaps.
Also see example usages in career_village_entities.
Closing Remarks
Very much a work in progress. Expect major changes as the library evolves. I'd appreciate other people's input, so feel free to submit a PR.
Contact: Matt Hagy matthew.hagy@gmail.com
Metadata
Release files for scalaps 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 |
|---|---|---|---|---|
| scalaps-0.0.3.tar.gz | 4.6 kB | Without provenance | Details for scalaps-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scalaps-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for scalaps-0.0.3-py3-none-any.whl |
Total release size: 10.2 kB
Release files / scalaps-0.0.3.tar.gz
| Download URL | scalaps-0.0.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e679bf008c83b0653688f6ec22c5dc8c4965f70cdfedbee8229cfb31346be1e2
|
|
BLAKE2b-256 checksum How to use checksums |
1746a9bd6f2c1373fac3aff985d9b2090525bd16d493771ac8dfdc15553808f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.0
|
Release files / scalaps-0.0.3-py3-none-any.whl
| Download URL | scalaps-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a09591f50796ea16a872241a0e2a6a47b4ec61baa51639bff013c2d96dcbaf05
|
|
BLAKE2b-256 checksum How to use checksums |
49da4d2c67e1ef1480101edc6e983a987215df8a397fa4e11409a5428221a45e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.0
|
Security for scalaps 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.