RexPython
=========
This is Reactive Extensions (Rx) for Python implementation mimicing RxJava2 API as far as it can.
It is LINQ free btw. The goal to make it hackable on the go.
https://github.com/chexov/rexpython
Installation
============
pip install rexpython
=====
Usage
=====
import rexpython as rx
def on_subscribe(emitter):
emitter.setDisposable(ActionDisposable(lambda: sys.stdout.write("disposed")))
print ("subscribed")
for i in xrange(1, 3):
emitter.onNext(i)
time.sleep(1)
# emitter.onError(Exception("foo"))
emitter.onComplete()
frames = rx.Observable.create(lambda emitter: on_subscribe(emitter, video_url, 2))
mat_img = frames.map(featureextractor.FeatureExtractor.preprocess_image)
vect = mat_img.map(lambda img: fe.get_activations([img]))
words = vect.map(lambda vec: d.getWordsForBatch(vec, 40)) \
.flatMap(lambda wlist: rx.Observable.from_(wlist))
words = words.doOnNext(lambda w: log.info("words=%s" % w)).doOnError(lambda err: log.error("ERRRORRR %s" % err))
value = words.toList().blockingGet()
Metadata
Release files for rexpython 0.1.9
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 | |
|---|---|---|---|---|
| rexpython-0.1.9.tar.gz | 7.5 kB | Without provenance | Details |
Release files / rexpython-0.1.9.tar.gz
| Download URL | rexpython-0.1.9.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a822270b70af5843708cee522887297763a38ebd24e09f4dd2b859311abda66
|
|
BLAKE2b-256 checksum How to use checksums |
1d9b3ac8c46a0d5e4525b848255c331593145701debcb8df6eb619ffaa9bcee6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rexpython 0.1.9
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.