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

pravegaBhu-0.3.8.tar.gz (49.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.11Windows x86-64

pravegaBhu-0.3.8-cp311-cp311-manylinux_2_35_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

pravegaBhu-0.3.8-cp311-cp311-manylinux_2_31_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

pravegaBhu-0.3.8-cp311-cp311-macosx_10_12_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pravegaBhu-0.3.8-cp310-cp310-manylinux_2_35_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

pravegaBhu-0.3.8-cp310-cp310-manylinux_2_31_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.31+ x86-64

pravegaBhu-0.3.8-cp310-cp310-macosx_10_12_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

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

Uploaded CPython 3.9Windows x86-64

pravegaBhu-0.3.8-cp39-cp39-manylinux_2_35_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.35+ x86-64

pravegaBhu-0.3.8-cp39-cp39-manylinux_2_31_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.31+ x86-64

pravegaBhu-0.3.8-cp39-cp39-macosx_10_12_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

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

Uploaded CPython 3.8Windows x86-64

pravegaBhu-0.3.8-cp38-cp38-manylinux_2_35_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.35+ x86-64

pravegaBhu-0.3.8-cp38-cp38-manylinux_2_31_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.31+ x86-64

pravegaBhu-0.3.8-cp38-cp38-macosx_10_12_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.8macOS 10.12+ x86-64

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

Uploaded CPython 3.7Windows x86-64

pravegaBhu-0.3.8-cp37-cp37m-manylinux_2_35_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.35+ x86-64

pravegaBhu-0.3.8-cp37-cp37m-manylinux_2_31_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.31+ x86-64

pravegaBhu-0.3.8-cp37-cp37m-macosx_10_12_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.7mmacOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pravegaBhu-0.3.8.tar.gz
Algorithm Hash digest
SHA256 1d329e077fc53d0e7563f7bea6bd4fc90719294fbccfaf89bd92cebc4de06a80
MD5 bed7bbd943f712c43c754c23315c82d7
BLAKE2b-256 ce07a4c5dff8aa2df65b32d1c30ff6735654f89ccc7afeec908e4ebe94609790

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pravegaBhu-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/4.0.2 CPython/3.11.6

File hashes

Hashes for pravegaBhu-0.3.8-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 e2dbe41ddf0a963ab2ee540fe80cc52f11049203b3c2140149ddb0b58c6e29e6
MD5 519b1f29b2380a8c7dee1a2fc2cfc7f4
BLAKE2b-256 feca9867af2624436d27a9e5b816eec1b69de0617e38d699d8b5c05e7d3a23b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 90d38629f619c247d894b250ea1dad7e43a5af9068aa7019bacf22d0353d6705
MD5 1a5bff774a524faec13256ebe70084a1
BLAKE2b-256 cf0ca0f15c778012766fb210e91818dced208f3bb3fdae8073f3d8518454e9a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 559c3d614c022d387317d22fccb0139af95330229000dc80a435df91e3a3bf9f
MD5 4ae5cf6e1d6645fd77968009577e8552
BLAKE2b-256 ddeeefc56cc4ed2211c4f554b47f2bfe6dbdce532079902d67a3e80414d9d0db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ae97ae2b225a8a6f866f6e90f86909bdbc2229680e8d3f33f8282b39c9068789
MD5 61aa1f71fcb3adb3ff583d8421f85a5c
BLAKE2b-256 b2ae008bddbe21ea1576a997310c47b0b46e4446615b1d97fb96e2238b0ad078

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pravegaBhu-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/4.0.2 CPython/3.10.11

File hashes

Hashes for pravegaBhu-0.3.8-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 389670b19be81c0cc245547c5ff184564158684c00aa70b791cd25614f77547e
MD5 136c73dcd5f201d1a72e33fdbf8e5297
BLAKE2b-256 824061b341f54ace58d53656b4f1c25cafde2125fe009d388e1860bca88c5836

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 fe0fab735ca9e4f3b87858f85ed8222bd02e8395e18ac91ed11f0475c34ac930
MD5 dee44c431b5f1b5a2a44d5f6fb6935f8
BLAKE2b-256 1c89c2e93966b8c90cbe88d4ab44da63a17ed33378acbe3f94f55a41587ccb0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6e0cdaf2227077a0bf14e01004948b990ec26f6c7cf6cb603577ffac520a5bb5
MD5 393f676c60004ac443cdde7d8784f00e
BLAKE2b-256 eda17b4f5941aa05f626669ecaa40ade4c81064e715f045558482fc18d1ddf9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 555f9f42f21580ebcf1592aa0b6d05bf3eb43558bab99572b290e26770d2eee7
MD5 648d5256da41490a51e656b9e86aae90
BLAKE2b-256 08e0b6c1acd151b4f7c08b8a08b4fb8f65634c4143a6b3f4720975ddb561dee8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pravegaBhu-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/4.0.2 CPython/3.9.13

File hashes

Hashes for pravegaBhu-0.3.8-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 c01c5910a9aa895a27dbd9076c731cf526fdae4fdcd129a566b590ac83147fc7
MD5 50a49a5701533fe5090b8b42d292b8b5
BLAKE2b-256 16642bc10a952614f645c72e90fed0f88a7ecbae3d2ebc8b7f593d18e35b5a1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 fc4c52018cd5d7e28bec7a5663f2a99916ee387bb88798c8c380c4ba9cc2df74
MD5 4df514a5a0fd6f64f308320e32195448
BLAKE2b-256 429e053a1ec3e942892d61031683c685818e8eeb9f60818bb46d66ccbf0005ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 609efc985c73d0dd2bde226a2c28288d1add3440661e1441af6a7f55e7de1cf8
MD5 f590468832865c1c8914b9eb7b8eac27
BLAKE2b-256 c1c44b3dc65173bc24ee693fb019ab37d5e831ae4f02b7010b11fd6eedfc754c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 493eb54c85012a73bcfd2180ca91eae6a2ca656298bfa948f590b674178eec67
MD5 a44b2211270124c0e3b404c45a0d64a0
BLAKE2b-256 49014e623222e9837d8c2426ea7f20278e5b478936ab5d2d5cdfba8643c820b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pravegaBhu-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/4.0.2 CPython/3.8.10

File hashes

Hashes for pravegaBhu-0.3.8-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 2a22f7c8e66147dbec985ab40f49ea6777d71eb18fb25fe5357e278e6ba500e7
MD5 99af8b40b252afd9f66b50ee77acc79e
BLAKE2b-256 f825e0ccccb5fe6165fc90cc97119aacd213f5bd0df16f4035822d0dd4f511b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 367b2983be5941db0e80942b52abe9b63b644fb5ff84034dae6a61bdc6d86293
MD5 1b7bc59051824a7d796c14ce1109603c
BLAKE2b-256 6868104a30a34355e1df4d958bc61c579390209c37e8e1dc707b04117fef20a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 347af8a1d533c25204f47c086818c5628fbd101807dff7e1bd8f43f41d46f04f
MD5 102f897b0ab7b6f396b327aace0698b4
BLAKE2b-256 b8b4cb101ceea105d1b376a955a034417cdeb3aafa89b87c6372b497b822f95e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp38-cp38-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2b3c6f17949f0691cebaaf11560c0b9d33025d77e2ed071f90eff8cce1c51d99
MD5 653a3078aceb2f2dc436c9ddd4a74261
BLAKE2b-256 0a51b13352045cc983f578dcd01e10ffaffd89238094ca6ff3cdaf2a4a743f8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pravegaBhu-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 pravegaBhu-0.3.8-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 c5b65173aa9aa586d5162cb3e3f45b87b53dba4b89d5164567e84af666526ab4
MD5 03077dd8032c78675c3ae8ef4e79b165
BLAKE2b-256 466d42e438f34047dcf556ae56314b10fb27303e9c20d23d029c736491fc3dd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp37-cp37m-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e5818b7e7404808d23df850a4218376af7cc53e55a15cf0568c9b8b286aefc5c
MD5 a9ef5d702ca3404db7e0ec11cedfb390
BLAKE2b-256 0498fbbf7e6c20b58c983cd416a45e1c5e8d213ee397391c646c41a920e489a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp37-cp37m-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8cdffd6bb99598ff10aa38aa5f9886144d1f524f69e522b6d5e13e666eaa84c4
MD5 11026f61b69905cb8841145d4ab434dd
BLAKE2b-256 2b5735231aee880a1336b51b6ae2c5ac68fcab220f072478662d5e71f37bad3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pravegaBhu-0.3.8-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1b428550334527c3b1431176750091dc621c98a0feae4fc319121989eafe47c9
MD5 c64030d0fe6e8e1e2e2c927e951266c9
BLAKE2b-256 b8c7ca8bb39453882bf023e118fc17b08af2b662fcf8e0151c1de3577251f543

See more details on using hashes here.

Supported by

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