semvec/pypi-packages huggingface dataset:
restible-django 0.1.1
Django integration for restible library
License: MIT
Keywords: restible REST restapi rest server


restible-django
###############

.. readme_inclusion_marker

**restible-django** is a library that provides **django** integration with
`restible <https://github.com/novopl/restible>`_. It includes the base resource
class ``DjangoResource`` that can be used to define REST resources based on
django model definitions along with ``DjangoEndpoint`` class that integrates
`restible <https://github.com/novopl/restible>`_ with django routing.


.. note::
    The CircleCI builds can be found
    `here <https://circleci.com/gh/novopl/restible-django>`_

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

.. code-block:: shell

    $ pip install restible-django


Contributing
============

Setting up development repo
---------------------------

.. code-block:: shell

    $ git clone git@github.com:novopl/restible-django.git
    $ cd restible-django
    $ virtualenv env
    $ source ./env/bin/activate
    # python setup.py develop
    $ pip install -r ops/devrequirements.txt
    $ peltak git add-hooks


Running tests
.............

**Config**: The types of tests are defined in ``pelconf.py`` and the
pytest configuration is defined in ``ops/tools/pytest.ini``.

.. code-block:: shell

    $ peltak test

Linting
.......

**Config**: The list of locations to lint is defined in ``pelconf.py`` and the
linters configuration is defined in ``ops/tools/{pylint,pep8}.ini``.

.. code-block:: shell

    $ peltak lint

Generating docs
...............

**Config**: The list of documented files and general configuration is in
``pelconf.py`` and the Sphinx configuration is defined in ``docs/conf.py``.

.. code-block:: shell

    $ peltak docs
ctodd-python-lib-csv 1.0.2
Python utilities used for interacting with .csv files
License: MIT
Requires Python: >3.6
Keywords: python,libraries,csv

# Christopher H. Todd's Python Lib for CSV Files

The ctodd-python-lib-csv project is responsible for interacting with .csv files and .csv formatted data. This includes converting to and from .csv format, reading .csv files, writing .csv files, and other general CSV related tasks.

## Table of Contents

- [Dependencies](#dependencies)
- [Libraries](#libraries)
- [Example Scripts](#example-scripts)
- [Notes](#notes)
- [TODO](#todo)

## Dependencies

### Python Packages

- simplejson>=3.16.0

## Libraries

### [csv_general_helpers.py](https://github.com/ChristopherHaydenTodd/ctodd-python-lib-csv/blob/pypi/csv_helpers/csv_general_helpers.py)

CSV General Helpers. This library is used to interact with .csv files not specificlly related to reading or writing them.

Functions:

```
def convert_csv_file_to_json_file(csv_filename, json_filename=None, seperator=","):
    """
    Purpose:
        Convert .csv File to .json
    Args:
        csv_filename (String): .csv file to convert to .json
        json_filename (String): filename for the resulting .json
        seperator (String): String seperator of fields in the .csv
    Return:
        json_filename (String): filename for the resulting .json
    """
```

### [csv_reading_helpers.py](https://github.com/ChristopherHaydenTodd/ctodd-python-lib-csv/blob/pypi/csv_helpers/csv_reading_helpers.py)

CSV Reading Helpers. This library is used to aid in reading with .csv files

Functions:

```
N/A
```

### [csv_writing_helpers.py](https://github.com/ChristopherHaydenTodd/ctodd-python-lib-csv/blob/pypi/csv_helpers/csv_writing_helpers.py)

CSV Writing Helpers. This library is used to aid in writing with .csv files

Functions:

```
N/A
```

## Example Scripts

Example executable Python scripts/modules for testing and interacting with the library. These show example use-cases for the libraries and can be used as templates for developing with the libraries or to use as one-off development efforts.

### N/A

## Notes

 - Relies on f-string notation, which is limited to Python3.6.  A refactor to remove these could allow for development with Python3.0.x through 3.5.x

## TODO

 - Unittest framework in place, but lacking tests
pcap-ioc 0.1.2
Python library extracting potential IOCs from a pcap file
License: MIT
Keywords: threat-intel

# pcap-ioc

Python tool to extract potential IOCs from a pcap file using [pyshark](https://kiminewt.github.io/pyshark/)

List of IOCs extracted :

* IP addresses from IP packets
* Domains and IP addresses from DNS requests
* Domains, url and user-agents from HTTP requests
* Domains from HTTPs X509 certificates

To install it, you can just do `pip install pcap_ioc` or install it from this repository with `pip install .`.

## Usage

### As a library

```python
from pcap_ioc import Pcap

p = Pcap('FILE.pcap')
for i in p.indicators:
    print(i)
```

### CLI tool

```
$ pcap_ioc
usage: pcap_ioc [-h] {ioc,misp,shell} ...

Process some pcaps.

positional arguments:
  {ioc,misp,shell}  Subcommand
    ioc             Extract IOCs
    misp            Extract IOCs and search in MISP
    shell           Open a shell with pyshark

optional arguments:
  -h, --help        show this help message and exit
```

To query MISP servers, you need to create a file `~/.misp` with one entry for every MISP server for instance :
```
[server1]
url: https://misp1.example.org/
key: KEYHERE
default: true

[server2]
url: https://misp2.example.org/
key: KEYHERE
```

Then you can query one of these server with `pcap_ioc misp -s misp2 file.pcap`

## License

This software is released under the MIT license.