semvec/pypi-packages huggingface dataset:
bottery 0.1.1
A bot framework with batteries included
License: MIT

# bottery
:battery: A framework for building bots

[![Build Status](https://travis-ci.org/rougeth/bottery.svg?branch=master)](https://travis-ci.org/rougeth/bottery)
[![Build status](https://ci.appveyor.com/api/projects/status/we3h64nj98vvxcre/branch/master?svg=true)](https://ci.appveyor.com/project/rougeth/bottery/branch/master)
[![PyPI](https://img.shields.io/pypi/v/bottery.svg)](https://pypi.python.org/pypi/bottery)
[![Versions](https://img.shields.io/pypi/pyversions/bottery.svg)](https://pypi.python.org/pypi/bottery)

* [Usage](#usage)
  * [Documentation](http://docs.bottery.io)
  * [Installing](#installing)
  * [Creating a project](#creating-a-project)
  * [Running](#running)
* [Development](#development)

A complete example can be seen [here](https://github.com/leportella/bottery-examples).


## Usage

### Installing
```bash
$ pip install bottery
```

### Creating a project
```bash
$ bottery startproject librarybot
```

### Running
```bash
$ bottery run
```

## Development

Please see [our contribution guide](CONTRIBUTING.rst).
pytest-asptest 0.1.0
test Answer Set Programming programs
License: MIT

# ASP test
[pytest](https://docs.pytest.org) plugin to test ASP source code.

The principle is simple: you write inputs and outputs in a dedicated file, you run pytest,
pytest tells you which outputs are missing or unexpected.


## Installation

    pip install pytest-asptest

Obviously, in order to run ASP, a solver must be installed. The only one handled for now is [clingo](https://github.com/potassco/clingo/releases)
from [potassco labs](https://potassco.org).


## simple example
Let's consider `dumbasp.lp`, an ASP code we want to be tested:

```asp
p(1..3).
q(X): p(X).
```

We want to test the rule in second line. We therefore put it into a block (consecutive lines without blank lines)
and give it a tag, `rule-q`:

```asp
p(1..3).

% TEST: rule-q
q(X): p(X).
```

Now we fill `test-rule-q.lp` with multiple tests:

```asp
% INPUT
% empty test: no input, no output
% INSATISFIABLE

% INPUT
p(1).
% OUTPUT
q(1).
% OUTPUT
q(2).  % This will lead to an error : there is no such answer set.
```

Now, we can run again asptest:

    pytest dumbasp.lp

It will report the testing process, indicating which tests are passed, and which are not.

More examples are available in the [Makefile](Makefile), or in [examples/](examples/)




## features
- multiple files support ; tags are shared
- handle generation of multiple answer sets, and strict keyword

### strict output
By default, the atoms given in output parts must be a *subset* of the atoms present in the answer set.
However, if you want to explicitely give *all* atoms that must appear in a given answer set,
you can write `% STRICT OUTPUT` instead of `% OUTPUT` in the test file.

### file uid
The file uid is given by default to all blocks of a file, and is the basename of the file.
You can therefore implement `test-queens.lp` to test all the blocks found in file `queens.lp`,
without having to manually tag all your blocks with it.

### CLI options
asptest add one option to pytest: `--uid-tests-dir`, allowing user to give to asptest the directory in which the `test-*.lp` files are.
For instance, `pytest . -vv --uid-tests-dir asp-test` would allow you to test all ASP files in the current directory, using the test files in `asp-test/` dir.

## TODO
- auto include input code into output with flag *with-output* on OUTPUT lines in test files
XOR-CheckSum-zsd 1.0.7
XOR_CheckSum tools
License: MIT
Keywords: XOR checksum string zsd


\>\>\> from XOR_CheckSum import xor_checksum_string

\>\>\> xor_checksum_string('CCICA,0,00')

123

\>\>\> hex(xor_checksum_string('CCICA,0,00'))

'0x7b'

\>\>\> hex(xor_checksum_string('CCICA,0,00', encoding="utf-8"))

'0x7b'

\>\>\> hex(xor_checksum_string('CCICA,0,00', encoding="utf-16"))

'0x7a'
fiaclient 1.1.9
A simple client for FIA API (https://github.com/spacepatcher/FireHOL-IP-Aggregator)
License: MIT
Requires Python: >=3
Keywords: client threat_intelligence FireHOL-IP-Aggregator reputation

# fiaclient

This client is designed for easy integration with the FIA API service in various python scripts.

### Usage

Install fiaclient by command:
```
pip install fiaclient
```

Create client object from python3 console:
```
from fiaclient import fiaclient
client = fiaclient.FIAClient(fiaurl="http://127.0.0.1:8000/")
```

All the information about the methods is located in docstrings.
sslwireless-sms 0.0.3
A simple python wrapper for sslwireless sms api.
License: MIT
Keywords: python,sslwireless,sms,api-wrapper

SSLWireless SMS Api Wrapper for Python
======================================

A simple python wrapper for sslwireless sms api.

Requirements
------------

-  requests
-  xmltodict

Usage
-----

-  Clone the repository
-  Install the dependencies with ``pip install -r requirements.txt`` or
   ``pip install requests xmltodict``
-  Import the class and create instance to access its functions. ### Or
-  Install the package with ``pip install sslwireless-sms``

Example
-------

.. code:: python

    from sslwireless_sms import SSLWirelessSMS

    # username, password and sid provided by sslwireless
    # A fourth parameter 'decode_response' can be passed to determine the return type of data
    # By default 'decode_response' is set to 'False' so it will return json data as result
    # Set 'decode_response' to 'True' to get python dict as result
    SSLWirelessSMS = SSLWirelessSMS('username', 'password', 'sid')
    # You can change the api url if needed. i.e.
    # SSLWirelessSMS.url = 'new_url'
    result = SSLWirelessSMS.send('123456789','This is a test message.')

    print(result)

Output
------

The default output will always be in JSON format unless you set
``decode_response`` to be ``True``.

.. code:: javascript

    {
      "status": "success", // or "failed"
      "result": "sms sent", // or "invalid mobile or text" or "invalid mobile" or "invalid credentials"
      "phone": "123456789", // number to send message
      "message": "This is a test message.", // message sent
      "reference_no": "randomly_generated_unique_no", // client generated reference no
      "ssl_reference_no": "returned_sslwirless_reference_no", // api generated reference no
      "datetime": "2018-02-07 01:35AM" // datetime of process
    }