semvec/pypi-packages huggingface dataset:
grpc-invoke 0.0.13
a grpc request tool like requests

## Grpc Invoke

  This is a package for python grpc client like grpcurl.

## As We know

  grpc's work mode is generating client and server via proto file, But sometime we can't get the proto file.If you are facing the problem above, this tool may help you a lot.

## Features

- [x] you can do requests without any proto object
- [x] you can request your grpc server like http
- [x] you can use dictionary as your request data

- [ ] support stream
- [ ] support asyncio
- [ ] support tls

## Getting Started

```bash
$ pip install grpc-invoke
```

```python
from grpc_invoke.grpc_client import GrpcClient


with GrpcClient("localhost:50052", "Service", "method") as client:
    resp = client.invoke(data={"data": "hello"}, header={"auth": "fdfefsssdffdg"})
    print(resp)
```

  Enjoy it!


## Notice

  You should enable your server reflection. what you have to do is:

```python
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
hello_pb2_grpc.add_HelloServicer_to_server(Greeter(), server)


# start
SERVICE_NAMES = (
    hello_pb2.DESCRIPTOR.services_by_name['Hello'].full_name,
    reflection.SERVICE_NAME,
)
# enable reflection
reflection.enable_server_reflection(SERVICE_NAMES, server)

# done

server.add_insecure_port('[::]:50052')
server.start()
server.wait_for_termination()
SERVICE_NAMES = (
    hello_pb2.DESCRIPTOR.services_by_name['Hello'].full_name,
    reflection.SERVICE_NAME,
)
reflection.enable_server_reflection(SERVICE_NAMES, server)
```
pdusmsconverter 1.0
PDU Converter: SMS PDU encoding and decoding, including GSM-0338 character set, support Python 3
Requires Python: >=3.6

# PDU Converter Package

## About this Package
* This library will help you to encode and decode raw SMS data
* Support 7-bit, 8-bit, 16-bit
* Requires Python 3.6 or better

## How to use (Encode and Decode)
Example to number `0123456789` with message `Chào thế giới`
```
>>> import smspdu, time
>>> p = smspdu.SMS_DELIVER.create('0123456789', '987654321', 'Chào thế giới', datestamp=time.time(), tp_sri=1, tp_mms=0)
>>> print(p.toPDU())
200A8110325476980008122182514023001A0043006800E0006F0020007400681EBF0020006700691EDB0069
>>> s = smspdu.SMS_DELIVER.fromPDU(p.toPDU(), '0123456789')
>>> print("s.tp_address: " + s.tp_address)
>>> print("s.tp_scts: " + s.tp_scts)
>>> print("s.user_data: " + s.user_data)
s.tp_address: 0123456789
s.tp_scts: 21122815043200
s.user_data: Chào thế giới
```

This is upgrade version. The original from [smspdu 1.0](https://pypi.org/project/smspdu/)
pduconverter 1.0.0
PDU Converter: SMS PDU encoding and decoding, including GSM-0338 character set, support Python 3
Requires Python: >=3.6

# PDU Converter Package

## About this Package
This library will help you to encode and decode raw SMS data. \
Support 7-bit, 8-bit, 16-bit \
Requires Python from ver 3.6 \

## How to use (Encode and Decode)
>>> import smspdu, datetime \
>>> p = smspdu.SMS_DELIVER.create('+84123456789', '113', 'Chào thế giới', datestamp=time.time(), tp_sri=1, tp_mms=0) \
>>> print(p.toPDU()) \
>>> s = smspdu.SMS_DELIVER.fromPDU(p.toPDU(), '84123456789') \
>>> print("s.tp_address: " + s.tp_address) \
>>> print("s.tp_scts: " + s.tp_scts) \
>>> print("s.user_data: " + s.user_data) \

This is upgrade version. The original from [smspdu 1.0](https://pypi.org/project/smspdu/)