semvec/pypi-packages huggingface dataset:
zepu1chr3 0.0.2
A Radare2 based Python module for Binary Analysis and Reverse Engineering.
Requires Python: >=3.6

# Zepu1chr3
<img src="https://img.shields.io/badge/-Python-black?style=for-the-badge&logo=python&logoColor=white">
<br><b>A Radare2 based Python module for Binary Analysis and Reverse Engineering.</b><br>

# How to Use
## Specifying a target binary
- <i>Description</i>: You can specify any binary file to analysis you want. It returns a handler for target file.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
```

## Getting symbols from target binary
- <i>Description</i>: This method will give you what symbols are inside of the target file. It returns an array of symbol information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target zep.File("WannaCry.exe")
symbols = zep.GetSymbols(target)
```
![image](.animations/symbols.png)

## Getting imports from target binary
- <i>Description</i>: This method will give you what imports are inside of the target file. It returns an array of import information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
imports = zep.GetImports(target)
```
![image](.animations/imports.png)

## Getting functions from target binary
- <i>Description</i>: This method will give you what functions are inside of the target file. It returns an array of function information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
functions = zep.GetFunctions(target)
```
![image](.animations/functions.png)

## Getting sections from target binary
- <i>Description</i>: This method will give you what sections are inside of the target file. It returns an array of section information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
sections = zep.GetSections(target)
```
![image](.animations/sections.png)

# Disassembling functions or somethings contained in offsets
## Getting informations about only machine code
- <i>Description</i>: This method will give you disassembled function codes if ```only_codes``` parameter set to ```True```<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
disas = zep.DisassembleFunction(target, given_function="entry0", only_codes=True)
second = zep.DisassembleFunction(target, given_function="0x401000", only_codes=True) # You can use offsets to!!
```
![image](.animations/disas1.png)

## Getting every information about machine code (verbose!!)
- <i>Description</i>: If you set ```only_codes``` parameter as ```False``` you will get more verbose output.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
disas = zep.DisassembleFunction(target, given_function="entry0", only_codes=False)
```
![image](.animations/disas2.png)

# Pypi and Other functionalities are coming soon!!
nested-json 1.0.1
A library to manage JSONs with encoded JSON more effectively (e.g. AWS Event Bridge Events, AWS API Gateway Events)
Requires Python: >=3.6

# nested-json

![PyPI](https://img.shields.io/pypi/v/nested-json?style=flat-square) ![PyPI - Downloads](https://img.shields.io/pypi/dw/nested-json?style=flat-square) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/szikszail/nested-json?style=flat-square)

A library to manage JSONs with encoded JSON more effectively (e.g. AWS Event Bridge Events, AWS API Gateway Events)

## Install

```shell
pip install nested_json
```

## Usage

```python
import nested_json as njson
```

The main API of the library consist of:

* `Nested(obj)` - to convert any list or dictionary to a nested one
* `parse(str)` - to parse a JSON string to a nested JSON
* `process(obj)` - to process/stringify any nested JSON
* `dumps(obj)`,  `dump(obj, fp)` - same as from the `json` module, but supports nested JSON
* `loads(str)`,  `load(fp)` - same as from the `json` module, but supports nested JSON

### Marking `dict` / `list` as nested

The `Nested` function can be used to mark a dictionary or
list as nested data, which will add a particular property to it, 
marking it nested. This property was later removed during processing.

```python
data = {
  "id": "12345",
  "event": {
    "payload": {
      "rawpayload": njson.Nested({
        "key": "value",
        "other": 2,
        "foo": True
      }),
      "tags": njson.Nested([
        "hello",
        "world
      ])
    }
  }
}
# {
#   "id": "12345",
#   "event": {
#     "payload": {
#       "rawpayload": {
#         "__nested__": True,
#         "key": "value",
#         "other": 2,
#         "foo": True
#       },
#       "tags": [
#         "__nested__",
#         "hello",
#         "world
#       ]
#     }
#   }
# }
```

### Processing nested JSON

Using the `process` function, the nested keys can be removed
and nested data converted to JSON string.

```python
processed_data = njson.process(data)
# {
#   "id": "12345",
#   "event": {
#     "payload": {
#       "rawpayload": "{\"key\": \"value\", \"other\": 2, \"foo\": true}",
#       "tags": "[\"hello\", \"world\"]"
#     }
#   }
# }
```

### Converting to JSON string

The result of `process` can be already passed to `json.dumps` , 
but the `njson.dumps` can also be used with nested JSON data.

```python
json_string = njson.dumps(data)

# '{"id": "12345", "event": {"payload": {"rawpayload": "{\\"key\\": \\"value\\", \\"other\\": 2, \\"foo\\": true}", "tags": "[\\"hello\\", \\"world\\"]"}}}'
```

### Parsing JSON string

Nested JSON string can be parsed to nested JSON data with the `loads` function or the `parse` function

```python
assert njson.loads(json_string) == data
assert njson.parse(processed_data) == data
assert njson.parse(json.loads(json_string)) == data
```

## Compatibility

Note that both `loads` and `dumps` use the `json.loads` and `json.dumps` functions; thus they can be used with "normal" JSON as well.
pydragonfly 0.1.2
Robust Python SDK and CLI for Certego's Dragonfly service's API
Requires Python: >=3.6
Keywords: certego dragonfly sdk python command line osint threat intel malware

# pyDragonfly

[![PyPI version](https://badge.fury.io/py/pydragonfly.svg)](https://badge.fury.io/py/pydragonfly)
[![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/pydragonfly.svg)](https://pypi.python.org/pypi/pydragonfly/)

[![Linter & Tests](https://github.com/certego/pydragonfly/workflows/Linter%20&%20Tests/badge.svg)](https://github.com/certego/pydragonfly/actions)
[![codecov](https://codecov.io/gh/certego/pydragonfly/branch/main/graph/badge.svg?token=KBk4rQj08b)](https://codecov.io/gh/certego/pydragonfly)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/certego/pydragonfly.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/certego/pydragonfly/context:python)
[![CodeFactor](https://www.codefactor.io/repository/github/certego/pydragonfly/badge)](https://www.codefactor.io/repository/github/certego/pydragonfly)

Robust Python **SDK** and **Command Line Client** for interacting with Certego's [Dragonfly](https://dragonfly.certego.net/) service's API. Built with [django-rest-client](https://github.com/certego/django-rest-client).

## Features

- Easy one-time configuration with self documented help and hints along the way.
- Supports all endpoints of [Dragonfly's REST API](https://dragonfly.certego.net/api/schema/swagger-ui/).
- Analysis:
  - Create new analysis by uploading sample
  - Revoke a running analysis
  - View analysis report
  - List latest with filtering, ordering, pagination capabilities
  - Download sample of an existing analysis
- Profile and Rule:
  - Create new Profile or Rule objects
  - Update existing Profile and Rule objects
  - List latest with filtering, ordering, pagination capabilities
- View and manage your dragonfly organization and invitations
- View and manage active browser sessions
- View account access and subscription info

## Demo

[![pydragonfly asciicast](https://asciinema.org/a/443248.svg)](https://asciinema.org/a/443248)

## Installation

Requires python version >=3.6.

```bash
$ pip3 install pydragonfly
```

For development/testing, `pip3 install pydragonfly[dev]`

## Documentation

[![Documentation Status](https://readthedocs.com/projects/certego-pydragonfly/badge/?version=latest&token=ab49e3570b3dd2c9e750976bf2d32ffb505f6a1b573b5657470ad2e4e372e684)](https://certego-pydragonfly.readthedocs-hosted.com/en/latest/?badge=latest)

- Documentation: https://certego-pydragonfly.readthedocs-hosted.com/
- Changelog: [CHANGELOG.md](https://github.com/certego/pydragonfly/blob/master/.github/CHANGELOG.md)

## FAQ

#### Generate API key

You need a valid API key to interact with the Dragonfly server. For this,
head on over to https://dragonfly.certego.net/me/sessions and click on the `Generate +` button.
markdown-table-generator 1.1.0
Library to generate Markdown table
Requires Python: >=3.6

# py-markdown-table-generator <!-- omit in toc -->

Python library to generate Markdown table.

- [Usage](#usage)
  - [CLI](#cli)
  - [Library](#library)
- [Build](#build)
- [Test](#test)
- [Contribute](#contribute)

## Usage

```bash
pip3 install markdown_table_generator
```

### CLI

```bash
csv-to-md -s ";" -a c tests/table.csv

# |   OS    |      Creator      |  Company  |
# |:-------:|:-----------------:|:---------:|
# | Ubuntu  | Mark Shuttleworth | Canonical |
# | FreeBSD |                   |           |
# | Fedora  |                   |  Red Hat  |

csv-to-md -s ";" -a r tests/table.csv

# |      OS |           Creator |   Company |
# |--------:|------------------:|----------:|
# |  Ubuntu | Mark Shuttleworth | Canonical |
# | FreeBSD |                   |           |
# |  Fedora |                   |   Red Hat |

csv-to-md -s ";" -a r tests/table.csv | xclip -selection clipboard # Copy markdown table in clipboard

psql -h 127.0.0.1 -U postgres postgres -c "select * from test" --csv | csv-to-md # Generate markdown table from PostgreSQL query
```

### Library

```python
from markdown_table_generator import generate_markdown, table_from_string_list

# ====================================================
# Generate markdown table from list of list of strings
# ==================================================== 
rows = [
    ["OS", "Creator", "Company"],
    ["Ubuntu", "Mark Shuttleworth", "Canonical"],
    ["FreeBSD", None, None],
    ["Fedora", None, "Red Hat"],
]
table = table_from_string_list(rows, Alignment.CENTER)
markdown = generate_markdown(table)
print(markdown)

# |   OS    |      Creator      |  Company  |
# |:-------:|:-----------------:|:---------:|
# | Ubuntu  | Mark Shuttleworth | Canonical |
# | FreeBSD |                   |           |
# | Fedora  |                   |  Red Hat  |


# ====================================================
# Generate markdown table from CSV
# ==================================================== 
csv = """
OS;Creator;Company
Ubuntu;Mark Shuttleworth;Canonical
FreeBSD;;
Fedora;;Red Hat
"""
table = table_from_csv(csv.splitlines(), ";", Alignment.RIGHT)
markdown = generate_markdown(table)
print(markdown)

# |      OS |           Creator |   Company |
# |--------:|------------------:|----------:|
# |  Ubuntu | Mark Shuttleworth | Canonical |
# | FreeBSD |                   |           |
# |  Fedora |                   |   Red Hat |
```

## Build

```bash
python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 -m build
```

## Test

```bash
python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
pytest
```

## Contribute

```bash
ln -s "$(pwd)/sh/pre-commit.sh" .git/hooks/pre-commit
```
... and let's code!
Zepu1chr3-CYB3RMX 0.0.1
A Radare2 based Python module for Binary Analysis and Reverse Engineering.
Requires Python: >=3.6

# Zepu1chr3
<img src="https://img.shields.io/badge/-Python-black?style=for-the-badge&logo=python&logoColor=white">
<br><b>A Radare2 based Python module for Binary Analysis and Reverse Engineering.</b><br>

# How to Use
## Specifying a target binary
- <i>Description</i>: You can specify any binary file to analysis you want. It returns a handler for target file.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
```

## Getting symbols from target binary
- <i>Description</i>: This method will give you what symbols are inside of the target file. It returns an array of symbol information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target zep.File("WannaCry.exe")
symbols = zep.GetSymbols(target)
```
![image](.animations/symbols.png)

## Getting imports from target binary
- <i>Description</i>: This method will give you what imports are inside of the target file. It returns an array of import information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
imports = zep.GetImports(target)
```
![image](.animations/imports.png)

## Getting functions from target binary
- <i>Description</i>: This method will give you what functions are inside of the target file. It returns an array of function information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
functions = zep.GetFunctions(target)
```
![image](.animations/functions.png)

## Getting sections from target binary
- <i>Description</i>: This method will give you what sections are inside of the target file. It returns an array of section information.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
sections = zep.GetSections(target)
```
![image](.animations/sections.png)

# Disassembling functions or somethings contained in offsets
## Getting informations about only machine code
- <i>Description</i>: This method will give you disassembled function codes if ```only_codes``` parameter set to ```True```<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
disas = zep.DisassembleFunction(target, given_function="entry0", only_codes=True)
second = zep.DisassembleFunction(target, given_function="0x401000", only_codes=True) # You can use offsets to!!
```
![image](.animations/disas1.png)

## Getting every information about machine code (verbose!!)
- <i>Description</i>: If you set ```only_codes``` parameter as ```False``` you will get more verbose output.<br>
```python
import zepu1chr3

zep = zepu1chr3.Binary()
target = zep.File("WannaCry.exe")
disas = zep.DisassembleFunction(target, given_function="entry0", only_codes=False)
```
![image](.animations/disas2.png)

# Pypi and Other functionalities are coming soon!!