semvec/pypi-packages huggingface dataset:
threedb 1.1
ThreeDB is a lightweight database optimized for data storage used testing
Keywords: ddt testing testdata

# 3db - three DB

[![Build Status](https://travis-ci.org/EvgenyAK/3db.svg?branch=master)](https://travis-ci.org/EvgenyAK/3db.svg?branch=master)

ThreeDB is a lightweight database optimized for data storage used testing. [DDT](https://en.wikipedia.org/wiki/Data-driven_testing).

## Usage

```
TestData/
    10001_A/
        data_1.txt
        etalon_1.txt
    10002_B/
        data_1.txt
        etalon_1.txt
    10003_A_B/
        data_A_1.txt
        etalon_A_1.txt
        data_B_1.txt
        data_B_1.txt
```

```python
import threedb 


db = threedb.connect("TestData/")
items = db.search()
print(items)

>>> {'ref': './10001_A', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b38>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b70>, 'index': '10001_A'}
>>> {'ref': './10002_A_B', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563ba8>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563be0>, 'index': '10002_A_B'}
>>> {'ref': './10002_B', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563c50>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563c88>, 'index': '10002_B'}

items = db.search(*("10001_A",))
print(items)

>>> {'ref': './10001_A', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b38>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b70>, 'index': '10001_A'}

first = item[0]["etalon_1_txt"]
print(first.text)

>>> {"name": "Neo"}

print(first.json())

>> {
    "name": "Neo"
}
```


## Database schema

Used to describe the schema of a database.

```json
'schema': {
    'input_data': {
        'match': ['data.*']
    },
    'gold_etalon': {
        'match': ['etalon.*'],
    }
}
```

```python

db = threedb.connect("TestData/")
items = db.search(*("10001_A",))
print(items)

{'tags': [], 'index': '10001_A', 'ref': './10001_A', 'gold_etalon': <threedb.storage.DataItem object at 0x7fbfaff4bc88>, 'input_data': <threedb.storage.DataItem object at 0x7fbfaff4bf28>}


```
## Meta-data file

```
TestData/
    10001_A/
        metadata.yaml # tags: - serviceA

        data_1.txt
        etalon_1.txt
    10002_B/
        data_1.txt
        etalon_1.txt
    10003_A_B/
        data_A_1.txt
        etalon_A_1.txt
        data_B_1.txt
        data_B_1.txt
```

```python
db = threedb.connect("TestData/")
items = db.search(*("serviceA",))
print(items)

>>> {'ref': './10001_A', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b38>, 'tags': ['serviceA'], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b70>, 'index': '10001_A'}
```
kartoffel 0.1
Identify modules used in a Python application by running it.
Requires Python: >=3.5

Identify modules used in a Python application.

To run::

    kartoffel module:func [args for application]

For example, for IPython::

    kartoffel IPython:start_ipython

Your application will run. If any modules are dynamically loaded (e.g. plugins),
activate the features to ensure that they are loaded. Then quit your application.

After your application exits, Kartoffel will capture a list of all the Python
modules loaded (``sys.modules``). Then it will classify these into groups:

- Modules from identified distributions (i.e. PyPI packages)
- Modules from the standard library (using `stdlib_list <http://python-stdlib-list.readthedocs.io/>`_)
- Modules not from files (builtins and dynamically created modules)
- Unidentified

The results are saved as ``kartoffel-result.json`` in the working directory.
A summary is printed on stdout.
password_gen 0.2.16
Generates memorable strong passwords.
Keywords: password-generator

# password-generator:
Generates a memorable (by pattern), strong (long and mixed characters) passwords.

# Install
`sudo pip install password_gen`

# Documentation
`generate(pattern, dictionary, digits, characters)`: Generates password


>`pattern:{string: d - number, wi - word of length i, s - any special character} specify pattern of the password. Ex 'w3-d.w5!' -> cat-1.horse!`


>`dictionary:{list} a list of preferred words`


>`digits:{list} a list specifying the range of digits. Ex [2, 8] -> digits from 2 to 7`


>`characters:{list} a list specifying the range of ascii values of special characters. Ex [33, 36] -> '!, ~, #, $'`

# Usage
``` python
import password_gen as pg

print( pg.generate() )

#  with all parameters
print( pg.generate('w5-dd-w3.d',['willy', 'wonka', 'and', 'the', 'chocolate', 'factory'], [3, 8], [35, 38]))
# -> "Wonka-55-the.6"

# with some parameter
print( pg.generate('d.w4.d.w5!') )
# -> "2.PrAy.0.Filed!"

print( pg.generate(dictionary=['willy', 'wonka', 'and', 'the', 'chocolate', 'factory']) )
# -> "6wOnkA(and,ChocolatE&willy4"

print( pg.generate(digits=[2,5], characters=[33, 35]) )
# -> "#outsourcing4frequent5wArehoUse3sTreaM#"
```
pymochad 0.2.0
A python library for interacting with moch

========
pymochad
========
A python library for sending commands to the mochad TCP gateway daemon for
the X10 CMA15A controller:

https://sourceforge.net/projects/mochad/

Complete documentation is here: http://pymochad.readthedocs.io/en/latest/

Usage
=====

Using PyMochad is pretty straightforward you just need to init a PyMochad object
and then issue commands to it. For example:

.. code-block:: python

  from pymochad import controller

  mochad = remote.PyMochad()
  print(mochad.status())

will connect to a running mochad instance (running on your localhost) and print
the device status.

You can also send a command directly to a device using a device class. For
example:

.. code-block:: python

  from pymochad import controller
  from pymochad import device

  mochad = controller.PyMochad()
  light_switch = device.Device(mochad, 'a1')
  light_switch.send_cmd('on')

will connect to a running a mochad instance and send the *on* command to the
light switch device at address *a1* on the power line interface.

For a complete API documentation see: :ref:`pymochad_api`.