semvec/pypi-packages huggingface dataset:
kbase-jsonrpcbase 0.3.0a6
Simple JSON-RPC service without transport layer
License: MIT
Requires Python: >=3.6,<4.0

# JSONRPCBase

> NOTE: This is a fork of [level12/jsonrpcbase](https://github.com/level12/jsonrpcbase/) with changes maintained by KBase

Simple JSON-RPC service without transport layer

This library is intended as an auxiliary library for easy an implementation of JSON-RPC services with Unix/TCP socket
like transport protocols that do not have complex special requirements. You need to utilize some suitable transport
protocol with this library to actually provide a working JSON-RPC service.

## Features

- Easy to use, small size, well tested.
- Supports JSON-RPC v2.0. Compatible with v1.x style calls with the exception of v1.0 class-hinting.
- Optional argument type validation that significantly eases development of jsonrpc method_data.

## Example

Example usage:

```py
import jsonrpcbase

chat_service = jsonrpcbase.JSONRPCService()

def login(username, password, timelimit=0):
    # (...)
    return True

def receive_message(**kwargs):
    # (...)
    return chat_message

def send_message(msg):
    # (...)
    pass

if __name__ == '__main__':

    # Adds the method login to the service as a 'login'.
    chat_service.add(login, types=[basestring, basestring, int])

    # Adds the method receive_message to the service as a 'recv_msg'.
    chat_service.add(receive_message, name='recv_msg', types={"msg": basestring, "id": int})

    # Adds the method send_message as a 'send_msg' to the service.
    chat_service.add(send_message, 'send_msg')

    # Receive a JSON-RPC call.
    jsonmsg = my_socket.recv()

    # Process the JSON-RPC call.
    result = chat_service.call(jsonmsg)

    # Send back results.
    my_socket.send(result)
```

## Development

Install [poetry](https://python-poetry.org/) and run `poetry install`.

Run tests with `make test`.

Deploy with `poetry build` and `poetry publish`.

## Credits

This project was originally developed by Juhani Åhman.
gstreamer-rgw-sink 0.0.4
Gstreamer sink plugin to rgw ceph object storage
License: MIT
Requires Python: >=3.6
Keywords: Gstreamer,Ceph Object Storage,RGW,Python 3

Gstreamer ceph rgw sink plugin. 
Streams video from a src to ceph object storage. 

# Pip install
```pip install gstreamer-rgw-sink```

# PART 1: Install 
```
git clone https://github.com/Streaming-multiple-video-sources-Edge/gstreamer-rgw-sink.git
```

If you are NOT running ubuntu:
```
    podman run -ti --privileged --net=host -v `pwd`:/work docker.io/jweng1/gst-base-image:v1
    cd work
    cd gstreamer-rgw-sink

    python3 -m venv venv
    source venv/bin/activate
    pip install -U wheel pip setuptools
    pip install -r requirements.txt
    
    pip install gstreamer-rgw-sink 
 ```
If you are running ubuntu:
```
    cd gstreamer-rgw-sink

    python3 -m venv venv
    source venv/bin/activate
    pip install -U wheel pip setuptools
    pip install -r requirements.txt
    
    pip install gstreamer-rgw-sink
    
```

# PART 2: Exporting plugin 
```
   export GST_PLUGIN_PATH=$GST_PLUGIN_PATH:$PWD/venv/lib/gstreamer-1.0/:$PWD/venv/lib/python3.6/site-packages/gstreamer-rgw-sink
```

# PART 3: Inspect plugin
```
      gst-inspect-1.0 python
      
      You should see something like this,
    
      Plugin Details:
      Name                     python
      Description              loader for plugins written in python
      Filename                 /work/gstreamer-rgw-sink/venv/lib/gstreamer-1.0/libgstpython.cpython-36m-x86_64-linux-gnu.so
      Version                  1.14.5
      License                  LGPL
      Source module            gst-python
      Binary package           GStreamer GObject Introspection overrides for Python 
      Origin URL               http://gstreamer.freedesktop.org

      cephrgwsink: cephrgwsinkSink

      1 features:
      +-- 1 elements

```

# Example pipeline 
```
gst-launch-1.0 -v souphttpsrc location=https://youtubelink.com ! cephrgwsink cephrgwsink endpointurl=replaceME accesskey=replaceME secretkey=replaceME bucket=replaceME partsize=replaceME key=replaceME limitsize=replaceME
```