semvec/pypi-packages huggingface dataset:
rocketmq-client-python 2.0.0
RocketMQ Python Client
Keywords: rocketmq

# rocketmq-client-python

[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Build Status](https://travis-ci.org/apache/rocketmq-client-python.svg?branch=master)](https://travis-ci.org/apache/rocketmq-client-python)
[![codecov](https://codecov.io/gh/apache/rocketmq-client-python/branch/ctypes/graph/badge.svg)](https://codecov.io/gh/apache/rocketmq-client-python/branch/ctypes)
[![PyPI](https://img.shields.io/pypi/v/rocketmq-client-python.svg)](https://pypi.org/project/rocketmq-client-python)

RocketMQ Python client, based on [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp), supports Linux and macOS

## Installation

```bash
pip install rocketmq-client-python
```

## Usage

### Producer

```python
from rocketmq.client import Producer, Message

producer = Producer('PID-XXX')
producer.set_name_server_address('127.0.0.1:9876')
producer.start()

msg = Message('YOUR-TOPIC')
msg.set_keys('XXX')
msg.set_tags('XXX')
msg.set_body('XXXX')
ret = producer.send_sync(msg)
print(ret.status, ret.msg_id, ret.offset)
producer.shutdown()
```

### PushConsumer

```python
import time

from rocketmq.client import PushConsumer


def callback(msg):
    print(msg.id, msg.body)


consumer = PushConsumer('CID_XXX')
consumer.set_name_server_address('127.0.0.1:9876')
consumer.subscribe('YOUR-TOPIC', callback)
consumer.start()

while True:
    time.sleep(3600)

consumer.shutdown()

```

## License
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) Copyright (C) Apache Software Foundation
lofargeotiff 0.1
Write LOFAR near field images as GeoTIFF
Requires Python: >=2.7

# LOFAR GeoTIFF

This package provides a simple function to write LOFAR near field images as
a GeoTIFF file. This makes sure that some metadata is kept, in particular the
location of the image.

## Installation

`pip install lofargeotiff`

## Usage

Using as input a two-dimensional numpy array of pixel values, and the PQ
coordinates of the (center of the) lower left and upper right pixel, the
following command writes a GeoTIFF:

```python
from lofargeotiff import write_geotiff
import numpy as np

data = np.random.rand(400, 400)
lowerleft = (-200, -200)
upperright = (200, 200)

write_geotiff(data, "test.tif", lowerleft, upperright,
              obsdate="2016-02-12 08:00:00",
              tags={"Author": "Tammo Jan Dijkema",
                    "Project": "EOR"})
```

The resulting file can be read back into python using `rasterio.open`, or any
other package that reads TIFF. The metadata can be inspected on the command
line with `exiftool`.
natest 0.9
python unit test for network automation code

Simple package to run unit test for network automation python3 code.

Explanation by examples:

INPUT can be either a file or a return str() or list() Usually is the output of a show command

```
input = open('../fixtures/ssh_input', 'r')
```

HAVE is the return of you code run on top of INPUT

```
have = open('../fixtures/have', 'r')
```

WANT must be a file where you have your expected output

```
want = open('../fixtures/want', 'r')
```

Create an instance of NaTest

```
my_test = NaTest()
```

print the input. Ideally the input is saved in a variable and use to run your code (instead of run real ssh commands)

```
print(my_test.read(input))
```

print diff between what we HAVE and what we WANT

```
print(my_test.result(want, have))
```

Result (compared WANT against HAVE after running code using INPUT):

```
['+ This is an extra line\n']
['- This is a missing line\n']
```
shortcm-client 0.7.21
Short.cm commpand line UI

Short.cm CLI
===========================

A command line UI to [Short.cm website](https://short.cm).

First version only allows to import any CSV files (including YOURLS and Bitly) to Short.cm website.

You can get your secret key in [Connected apps & API](https://app.short.cm/users/connected_apps) page.

Installation
============

    pip install shortcm-client


Usage
=====

    usage: shortcm [-h] --secret-key SECRET_KEY {csv-import} ...

    CSV to Short.cm importer

    positional arguments:
      {csv-import}
        csv-import          CSV to Short.cm importer

    optional arguments:
      -h, --help            show this help message and exit
      --secret-key SECRET_KEY
                            Your short.cm secret key

CSV Import:

    usage: shortcm csv-import [-h] --filename FILENAME --domain DOMAIN
                              [--path-column PATH_COLUMN] --original-url-column
                              ORIGINAL_URL_COLUMN [--title-column TITLE_COLUMN]
                              [--created-at-column CREATED_AT_COLUMN]

    optional arguments:
      -h, --help            show this help message and exit
      --filename FILENAME   Filename to import
      --domain DOMAIN       Short domain
      --path-column PATH_COLUMN
                            Column number (starting from 0) for path
      --original-url-column ORIGINAL_URL_COLUMN
                            Column number (starting from 0) for original URL
      --title-column TITLE_COLUMN
                            Column number (starting from 0) for link title
      --created-at-column CREATED_AT_COLUMN
                            Column number (starting from 0) for link creation date