Skip to main content

Pravega client

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pravega-0.3.8.tar.gz (51.8 kB view details)

Uploaded Source

Built Distributions

pravega-0.3.8-cp311-none-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

pravega-0.3.8-cp311-cp311-manylinux_2_35_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

pravega-0.3.8-cp311-cp311-manylinux_2_31_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.31+ x86-64

pravega-0.3.8-cp311-cp311-macosx_10_12_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

pravega-0.3.8-cp310-none-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

pravega-0.3.8-cp310-cp310-manylinux_2_35_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

pravega-0.3.8-cp310-cp310-manylinux_2_31_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

pravega-0.3.8-cp310-cp310-macosx_10_12_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.10 macOS 10.12+ x86-64

pravega-0.3.8-cp39-none-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

pravega-0.3.8-cp39-cp39-manylinux_2_35_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

pravega-0.3.8-cp39-cp39-manylinux_2_31_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

pravega-0.3.8-cp39-cp39-macosx_10_12_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.9 macOS 10.12+ x86-64

pravega-0.3.8-cp38-none-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

pravega-0.3.8-cp38-cp38-manylinux_2_35_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

pravega-0.3.8-cp38-cp38-manylinux_2_31_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

pravega-0.3.8-cp38-cp38-macosx_10_12_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.8 macOS 10.12+ x86-64

pravega-0.3.8-cp37-none-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.7 Windows x86-64

pravega-0.3.8-cp37-cp37m-manylinux_2_35_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.35+ x86-64

pravega-0.3.8-cp37-cp37m-manylinux_2_31_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.31+ x86-64

pravega-0.3.8-cp37-cp37m-macosx_10_12_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.7m macOS 10.12+ x86-64

File details

Details for the file pravega-0.3.8.tar.gz.

File metadata

  • Download URL: pravega-0.3.8.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for pravega-0.3.8.tar.gz
Algorithm Hash digest
SHA256 5b7ba63514265dc28a6415b8085612881c28c4c33124a6d97d2cdc81765fadee
MD5 c5626d4fef027925ded5fab4c8e3b3e5
BLAKE2b-256 cf6b4b0b08296944fc0f4533eb54871488f3699f2e74ade992ed716ba3f82849

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp311-none-win_amd64.whl.

File metadata

  • Download URL: pravega-0.3.8-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for pravega-0.3.8-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 f762f75441488364dc2ba3fd3e00bc499c921773e73d53196183c318cde4bbab
MD5 2361bd5007412f021352b9289b70e89d
BLAKE2b-256 890c9560fda4926d5a45c645995708d8ab465eefa9ca6a2f444915a65c1f7591

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 79e78ea796b8b5f0268080c2674b152b0b7144a336554ecbd42c56b122ee4241
MD5 9faee403f4ca729e7cd5bbfd58d28966
BLAKE2b-256 2c155570108b0997328797281b55bc0f7224639865049945ab83f2fd0b34f168

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6b31ec31ee2b720eaf63c2c3b44c3d60d5403cd13242fb9cfa4a878be9a57a31
MD5 9b12b42c17a198e785333de2d15cc83b
BLAKE2b-256 e8e650a234b27a982998bcb57c6c30a348b18728aef0254dc490802065a4b44f

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 eb6e923d60c7e39e2c68ab7b84d92817a25fbb9cdf3d7809f4cda18b4c425b72
MD5 551f44b7a05fa4fa99b1941a207ea8c2
BLAKE2b-256 3d4b7922fe8c22222927a14ff13fdc0a43ce50759b7ca3d536557cffb4c40bd0

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp310-none-win_amd64.whl.

File metadata

  • Download URL: pravega-0.3.8-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for pravega-0.3.8-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 929c99c2a51ba6bf85d0c806728fdc0193b17db56e16e1af47ce49451f6cb943
MD5 177602678fa5503bc5e08ede6981a0f7
BLAKE2b-256 ae91212b08b6ce670f4932a43b70c573be8866d13e801d4b11ccbd5bd235920a

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 8c085e049098155991a88a1831ec91278f2316a0ccd9cb7e2ed9a37fa487640e
MD5 da3c39f2df63339280985ba090debec7
BLAKE2b-256 18a5fd687b9b79b79b7995ce42c24e29c8819f9dcf46ad8205005a5b6df567c5

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 46df8179230cbd11c3275df2bf97c15bd0490306c84d52b9d50f9c96df02502d
MD5 ea83b1c03f0db6c9dc8d0f5b0f32ee95
BLAKE2b-256 58864cf91c980ff7598e05fce59116d77999dac0eab85966bb8ae47adaf732c5

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4bdf0bfa0b1f1689587424e84c11f8cb4a8a5e6d6b80883ce1ded7109ab894b8
MD5 b2f6e8fde9cdfee34077dbc0a3f802f4
BLAKE2b-256 976e8681a257ec8f5d44ea89d361b65d2be371077d48bd8fd46a3aaf08341c4c

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp39-none-win_amd64.whl.

File metadata

  • Download URL: pravega-0.3.8-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for pravega-0.3.8-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 58d554986511f8630f4beeb8363c08847ba3d1b86646de25e028d267ec570abe
MD5 283e142c0c782519b27710a5aecc4b18
BLAKE2b-256 dae9248ee37b8f4d285aa6faef331ec234d076a853272ab606200ef24c743ad5

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 9bef72a219ec84910a2224cb396898bcaa453335838cb13287766b24e6d4c386
MD5 6d40019e39d9eeab3a7de9f6fe74bbbc
BLAKE2b-256 51ea624fdf55a05d74a176c588c33d5292ef331ad020f8fac2826a7c69ce0162

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a0bb5e08f352c7b38c7ca263938c2d4cf079373fdf7f86c8c95b9d83aa64567c
MD5 e8b8fdc87e90808644960bc10f785c31
BLAKE2b-256 a4a13e5ed283feac48911a2c5393f42967725e9cd2ae7b08f092f05fe253620b

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cb18bebe02f2ab89041aa30eae5b099248fdbb2b27eaa6484404b1a6d67c3dff
MD5 de144487620d41a10e4476546e39eb57
BLAKE2b-256 f158037a8153a50eef68fd2146cadadb069bc0ea88a56efd06c8b03fc1a112ed

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp38-none-win_amd64.whl.

File metadata

  • Download URL: pravega-0.3.8-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for pravega-0.3.8-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 92bfe3529c8c82a95f3aadf3e1447de4a458d2a76bb7ff7b5e7bea89d1d93b84
MD5 d22e256ebd80fa7fd822500751e9a20e
BLAKE2b-256 c5fd0df6f6f749ead902347b8f38b30dc4f6feaa8db3c596b46848282d375c12

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp38-cp38-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 ca71a41886d68fef83e8af9b44906dad2c8885521d4871610f0d96d67412f57d
MD5 6de5d79207e1d6bc676d09a792048be9
BLAKE2b-256 af782a5ab90aff6529ee9b99fc1d3e092fc23a0530ed1f55386c4dbac882c2f4

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp38-cp38-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2ef166f13675e36d1c26ce09adc701a7b7841afd89938002529c0aca7bc2db1e
MD5 77aace32a407f532dd96e111227eeae0
BLAKE2b-256 14a9f84c5a8471bf4c731948a5ba3c9134fa36d325964feb7fe30fbae5d3e797

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp38-cp38-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp38-cp38-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a99f0f5f9f8e2eb2413b9387c89fbff675a4f403777fee86ee95eb3654e21a90
MD5 0ed188084b20a0cfb333aeb124b4afe2
BLAKE2b-256 c24e17ced66b179c6b8e527bff0ecdcc78815b3bcfa51e171ff8012e771971b2

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp37-none-win_amd64.whl.

File metadata

  • Download URL: pravega-0.3.8-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for pravega-0.3.8-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 aff1ab580aee22d93c208fd065725d3e493d352d4a3b220ef53d7c273552b082
MD5 ee0d203b3d3c0f84195efd59a872bd4b
BLAKE2b-256 673d68a632799ccae9f4eb990ae3e3a3007cd050ad1fa34ebfc5c35a1329d083

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp37-cp37m-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp37-cp37m-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 936ac9503ee392dd37571fe7ac28fe433db40190ebfabebb38c83959d75867aa
MD5 0fdcb38710421b30eea7d440327b1bad
BLAKE2b-256 e1595c410b39b4b9d074f0e275f8fe400bc1f04798933e927401566977a1d0b7

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp37-cp37m-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp37-cp37m-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8a8f9eb135aacb2017f16300ce827bdb9c316ed1b8f5ec709ec93d8d4247ec48
MD5 ed7c361a488dfb682000cef63f132f27
BLAKE2b-256 d1993d05a7623c7904b6679c5ee9e8441791c0c2949701ec2b220674a70756ba

See more details on using hashes here.

File details

Details for the file pravega-0.3.8-cp37-cp37m-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pravega-0.3.8-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 eac96075976906bc2a29eb807223f6e105df193d5a013477fe04b40e38fe3fea
MD5 de45c06e57c9d80645af743781a43a8b
BLAKE2b-256 089e7ef6c3261a3d713082f636d1b65bc6ad25fffef60ffd8d14d5cd3b9f445a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page