semvec/pypi-packages huggingface dataset:
pfhb 0.9.5
Python package to dig hosts and generate PF (Packet Filter) rules
License: MIT

# packet-filter-host-blocker


A small Python package (class and cli) that digs into domains to find its related IPs and (if enabled) IP classes from the same ASN Origin due to generate PF (Packet Filter) tables and rules to block access into those services.


## Requirements

* user privileges to install `pfhb`, read `pf.conf`, write in `/etc/pfhb` and to run `pfctl`
* packet filter enabled (OpenBSD, FreeBSD, NetBSD or macOS)
rgbnotes 1.2.9
Python bindings for the RGB Notes API
License: MIT

# RGB Notes Python Library

[![CircleCI](https://circleci.com/gh/rgbnotes/rgb-api-python.svg?style=svg)](https://circleci.com/gh/rgbnotes/rgb-api-python)

The RGB Notes Python library provides convenient access to the RGB Notes API from
applications written in the Python language. It includes a pre-defined set of
classes for API resources.

## Documentation

See the [API docs](https://rgbnotes.com/help?section=api).

## Installation

You don't need this source code unless you want to modify the package. If you just
want to use the package, just run:

``` {.sourceCode .bash}
pip install --upgrade rgbnotes
```

Install from source with:

``` {.sourceCode .bash}
python setup.py install
```

### Requirements

* Python 2.6+ or Python 3.3+ (PyPy supported)
* Requests Module (PyPy supported)

## Usage

The library needs to be configured with your account's secret key which is
available in your [RGB Notes Settings](https://rgbnotes.com/login.php?r=/settings.php). 



# For Developers

## API v1

``` {.sourceCode .python}
import rgbnotes
rgbnotes.client_key = "your client key"
rgbnotes.client_id = "your client id"
# request a client or project token. Refer to the API
# documentation to see the difference in scope
rgbnotes.Token.client()
rgbnotes.Token.project(project_id=2, client_id=7)
```

## API Methods

All methods are encapsulated in it's own class.
The method names used on classes are:

``` {.sourceCode .python}
CLS.create()
CLS.list()
CLS.retrieve(id)
CLS.modify(id, **data)
CLS.delete(id)
```

## Projects Request

``` {.sourceCode .python}
rgbnotes.Project.create(title="New Project")
rgbnotes.Project.list()
rgbnotes.Project.modify(2, title="New Project Title")
rgbnotes.Project.delete(2)
```


## Assets Request

``` {.sourceCode .python}
# requires a project Token or project_id parameter
rgbnotes.Asset.list()
rgbnotes.Asset.create(title="New Asset")
rgbnotes.Asset.version(asset_id=422)
```


## Notes Request

``` {.sourceCode .python}
# requires a project Token or project_id parameter
rgbnotes.Note.list()
```


## Users Request

``` {.sourceCode .python}
rgbnotes.User.create(name="John Doe", email="john@doe.com")
rgbnotes.User.list()
```

## File Request

``` {.sourceCode .python}
fp = open("/path/to/file", "rb")
rgbnotes.File.create(file=fp)
rgbnotes.File.list()
```

## Snapshot Request

``` {.sourceCode .python}
rgbnotes.Snapshot.retrieve(id)
```


## Account Request

``` {.sourceCode .python}
rgbnotes.Account.retrieve()
```

## Alias Request

``` {.sourceCode .python}
rgbnotes.Alias.list()
rgbnotes.Alias.create(entity_type='projects',
                      entity_id=4,
                      alias=123)
rgbnotes.Alias.modify(id, alias_id)
rgbnotes.Alias.delete(id)
```


## Webhook Request

``` {.sourceCode .python}
rgbnotes.Webhook.modify(url="http://myurl.com/webhook", secret_header_field="", secret_header_value="")
rgbnotes.Webhook.list()
rgbnotes.Webhook.delete(id)
```
print-msg 0.9.4.2
Print colored status messages.
License: MIT
Requires Python: ~=3.4
Keywords: colored status messages module python

# print_msg module 

![Python 3.4, 3.5, 3.6, 3.7](https://img.shields.io/pypi/pyversions/print-msg.svg)
![pypi version](https://img.shields.io/pypi/v/print-msg.svg)
![requirements](https://img.shields.io/requires/github/shvetsovdmitry/print-msg.svg)

![wheel](https://img.shields.io/pypi/wheel/print-msg.svg)
![license](https://img.shields.io/github/license/shvetsovdmitry/print-msg.svg) 
![commit activity](https://img.shields.io/github/commit-activity/m/shvetsovdmitry/print-msg.svg)
![goto counter](https://img.shields.io/github/search/shvetsovdmitry/print-msg/goto.svg)

#### This module helps to print status messages in color depending on their content.

## Installation:
#### Github:
1. `$ git clone https://github.com/shvetsovdmitry/print-msg/`
2. `$ cd print-msg/`
3. `$ python3 setup.py sdist`
4. `$ cd dist/`
5. `$ sudo pip install print_msg-0.9.3.tar.gz`
#### pip:
`$ sudo pip install print-msg`

## Using:
```python
import print_msg

print_msg(status='%status_code%', msg='%message%', end='%optional%')
```

#### Status codes:
* *`'ok'`* -> `[--OK--] %Message%`;
* *`'error'`* -> `[-ERROR-] %Message%`;
* *`'status'`* -> `[STATUS] %Message%`;
* *`'time'`* -> `[-TIME-] Execution time -> %time%`;
micropython-collections.abc 0.0.0
Dummy collections.abc module for MicroPython
License: MIT

This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.