Pravega Python client.
This project provides a way to interact with Pravega using Python client.
Pravega is an open source distributed storage service implementing Streams. It offers Stream as the main primitive for the foundation of reliable storage systems: a high-performance, durable, elastic, and unlimited append-only byte stream with strict ordering and consistency.
This project supports interaction with Pravega for Python versions 3.8+.
Install
The client library can be installed using pip.
pip install pravega
The users can also choose to generate the bindings using the commands specified at PythonBinding .
Example
Write events
import pravega_client
# assuming Pravega controller is listening at 127.0.0.1:9090
stream_manager = pravega_client.StreamManager("tcp://127.0.0.1:9090")
scope_result = stream_manager.create_scope("scope_foo")
self.assertEqual(True, scope_result, "Scope creation status")
stream_result = stream_manager.create_stream("scope_foo", "stream_bar", 1) # initially stream contains 1 segment
self.assertEqual(True, stream_result, "Stream creation status")
writer = stream_manager.create_writer("scope_foo","stream_bar")
writer.write_event("hello world")
Read events
import pravega_client
# assuming Pravega controller is listening at 127.0.0.1:9090
stream_manager = pravega_client.StreamManager("tcp://127.0.0.1:9090")
reader_group = stream_manager.create_reader_group("my_reader_group", "scope_foo", "stream_bar")
reader = reader_group.create_reader("my_reader");
# acquire a segment slice to read
slice = await reader.get_segment_slice_async()
for event in slice:
print(event.data())
# after calling release segment, data in this segment slice will not be read again by
# readers in the same reader group.
reader.release_segment(slice)
# remember to mark the finished reader as offline.
reader.reader_offline()
Metadata
Release files for pravega 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pravega-0.3.8.tar.gz | 51.8 kB | Details |
Built distributions (wheels)
Total release size: 163.9 MB
Release files / pravega-0.3.8.tar.gz
| Download URL | pravega-0.3.8.tar.gz |
|---|---|
| Size | 51.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b7ba63514265dc28a6415b8085612881c28c4c33124a6d97d2cdc81765fadee
|
|
BLAKE2b-256 checksum How to use checksums |
cf6b4b0b08296944fc0f4533eb54871488f3699f2e74ade992ed716ba3f82849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Release files / pravega-0.3.8-cp311-none-win_amd64.whl
| Download URL | pravega-0.3.8-cp311-none-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f762f75441488364dc2ba3fd3e00bc499c921773e73d53196183c318cde4bbab
|
|
BLAKE2b-256 checksum How to use checksums |
890c9560fda4926d5a45c645995708d8ab465eefa9ca6a2f444915a65c1f7591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / pravega-0.3.8-cp311-cp311-manylinux_2_35_x86_64.whl
| Download URL | pravega-0.3.8-cp311-cp311-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.11 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
79e78ea796b8b5f0268080c2674b152b0b7144a336554ecbd42c56b122ee4241
|
|
BLAKE2b-256 checksum How to use checksums |
2c155570108b0997328797281b55bc0f7224639865049945ab83f2fd0b34f168
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / pravega-0.3.8-cp311-cp311-manylinux_2_31_x86_64.whl
| Download URL | pravega-0.3.8-cp311-cp311-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.11 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
6b31ec31ee2b720eaf63c2c3b44c3d60d5403cd13242fb9cfa4a878be9a57a31
|
|
BLAKE2b-256 checksum How to use checksums |
e8e650a234b27a982998bcb57c6c30a348b18728aef0254dc490802065a4b44f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / pravega-0.3.8-cp311-cp311-macosx_10_12_x86_64.whl
| Download URL | pravega-0.3.8-cp311-cp311-macosx_10_12_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.11 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
eb6e923d60c7e39e2c68ab7b84d92817a25fbb9cdf3d7809f4cda18b4c425b72
|
|
BLAKE2b-256 checksum How to use checksums |
3d4b7922fe8c22222927a14ff13fdc0a43ce50759b7ca3d536557cffb4c40bd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / pravega-0.3.8-cp310-none-win_amd64.whl
| Download URL | pravega-0.3.8-cp310-none-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
929c99c2a51ba6bf85d0c806728fdc0193b17db56e16e1af47ce49451f6cb943
|
|
BLAKE2b-256 checksum How to use checksums |
ae91212b08b6ce670f4932a43b70c573be8866d13e801d4b11ccbd5bd235920a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.10.11
|
Release files / pravega-0.3.8-cp310-cp310-manylinux_2_35_x86_64.whl
| Download URL | pravega-0.3.8-cp310-cp310-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
8c085e049098155991a88a1831ec91278f2316a0ccd9cb7e2ed9a37fa487640e
|
|
BLAKE2b-256 checksum How to use checksums |
18a5fd687b9b79b79b7995ce42c24e29c8819f9dcf46ad8205005a5b6df567c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / pravega-0.3.8-cp310-cp310-manylinux_2_31_x86_64.whl
| Download URL | pravega-0.3.8-cp310-cp310-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.10 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
46df8179230cbd11c3275df2bf97c15bd0490306c84d52b9d50f9c96df02502d
|
|
BLAKE2b-256 checksum How to use checksums |
58864cf91c980ff7598e05fce59116d77999dac0eab85966bb8ae47adaf732c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / pravega-0.3.8-cp310-cp310-macosx_10_12_x86_64.whl
| Download URL | pravega-0.3.8-cp310-cp310-macosx_10_12_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.10 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
4bdf0bfa0b1f1689587424e84c11f8cb4a8a5e6d6b80883ce1ded7109ab894b8
|
|
BLAKE2b-256 checksum How to use checksums |
976e8681a257ec8f5d44ea89d361b65d2be371077d48bd8fd46a3aaf08341c4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / pravega-0.3.8-cp39-none-win_amd64.whl
| Download URL | pravega-0.3.8-cp39-none-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
58d554986511f8630f4beeb8363c08847ba3d1b86646de25e028d267ec570abe
|
|
BLAKE2b-256 checksum How to use checksums |
dae9248ee37b8f4d285aa6faef331ec234d076a853272ab606200ef24c743ad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|
Release files / pravega-0.3.8-cp39-cp39-manylinux_2_35_x86_64.whl
| Download URL | pravega-0.3.8-cp39-cp39-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.9 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
9bef72a219ec84910a2224cb396898bcaa453335838cb13287766b24e6d4c386
|
|
BLAKE2b-256 checksum How to use checksums |
51ea624fdf55a05d74a176c588c33d5292ef331ad020f8fac2826a7c69ce0162
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / pravega-0.3.8-cp39-cp39-manylinux_2_31_x86_64.whl
| Download URL | pravega-0.3.8-cp39-cp39-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.9 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
a0bb5e08f352c7b38c7ca263938c2d4cf079373fdf7f86c8c95b9d83aa64567c
|
|
BLAKE2b-256 checksum How to use checksums |
a4a13e5ed283feac48911a2c5393f42967725e9cd2ae7b08f092f05fe253620b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / pravega-0.3.8-cp39-cp39-macosx_10_12_x86_64.whl
| Download URL | pravega-0.3.8-cp39-cp39-macosx_10_12_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.9 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
cb18bebe02f2ab89041aa30eae5b099248fdbb2b27eaa6484404b1a6d67c3dff
|
|
BLAKE2b-256 checksum How to use checksums |
f158037a8153a50eef68fd2146cadadb069bc0ea88a56efd06c8b03fc1a112ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / pravega-0.3.8-cp38-none-win_amd64.whl
| Download URL | pravega-0.3.8-cp38-none-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
92bfe3529c8c82a95f3aadf3e1447de4a458d2a76bb7ff7b5e7bea89d1d93b84
|
|
BLAKE2b-256 checksum How to use checksums |
c5fd0df6f6f749ead902347b8f38b30dc4f6feaa8db3c596b46848282d375c12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.8.10
|
Release files / pravega-0.3.8-cp38-cp38-manylinux_2_35_x86_64.whl
| Download URL | pravega-0.3.8-cp38-cp38-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.8 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
ca71a41886d68fef83e8af9b44906dad2c8885521d4871610f0d96d67412f57d
|
|
BLAKE2b-256 checksum How to use checksums |
af782a5ab90aff6529ee9b99fc1d3e092fc23a0530ed1f55386c4dbac882c2f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Release files / pravega-0.3.8-cp38-cp38-manylinux_2_31_x86_64.whl
| Download URL | pravega-0.3.8-cp38-cp38-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.8 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
2ef166f13675e36d1c26ce09adc701a7b7841afd89938002529c0aca7bc2db1e
|
|
BLAKE2b-256 checksum How to use checksums |
14a9f84c5a8471bf4c731948a5ba3c9134fa36d325964feb7fe30fbae5d3e797
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Release files / pravega-0.3.8-cp38-cp38-macosx_10_12_x86_64.whl
| Download URL | pravega-0.3.8-cp38-cp38-macosx_10_12_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.8 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
a99f0f5f9f8e2eb2413b9387c89fbff675a4f403777fee86ee95eb3654e21a90
|
|
BLAKE2b-256 checksum How to use checksums |
c24e17ced66b179c6b8e527bff0ecdcc78815b3bcfa51e171ff8012e771971b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Release files / pravega-0.3.8-cp37-none-win_amd64.whl
| Download URL | pravega-0.3.8-cp37-none-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
aff1ab580aee22d93c208fd065725d3e493d352d4a3b220ef53d7c273552b082
|
|
BLAKE2b-256 checksum How to use checksums |
673d68a632799ccae9f4eb990ae3e3a3007cd050ad1fa34ebfc5c35a1329d083
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|
Release files / pravega-0.3.8-cp37-cp37m-manylinux_2_35_x86_64.whl
| Download URL | pravega-0.3.8-cp37-cp37m-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
936ac9503ee392dd37571fe7ac28fe433db40190ebfabebb38c83959d75867aa
|
|
BLAKE2b-256 checksum How to use checksums |
e1595c410b39b4b9d074f0e275f8fe400bc1f04798933e927401566977a1d0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Release files / pravega-0.3.8-cp37-cp37m-manylinux_2_31_x86_64.whl
| Download URL | pravega-0.3.8-cp37-cp37m-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
8a8f9eb135aacb2017f16300ce827bdb9c316ed1b8f5ec709ec93d8d4247ec48
|
|
BLAKE2b-256 checksum How to use checksums |
d1993d05a7623c7904b6679c5ee9e8441791c0c2949701ec2b220674a70756ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Release files / pravega-0.3.8-cp37-cp37m-macosx_10_12_x86_64.whl
| Download URL | pravega-0.3.8-cp37-cp37m-macosx_10_12_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
eac96075976906bc2a29eb807223f6e105df193d5a013477fe04b40e38fe3fea
|
|
BLAKE2b-256 checksum How to use checksums |
089e7ef6c3261a3d713082f636d1b65bc6ad25fffef60ffd8d14d5cd3b9f445a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|