semvec/pypi-packages huggingface dataset:
private 0.3.0
Python modules and distribution encryption tool
Requires Python: >=2.7
Keywords: encrypt package wheel obfuscate

# Private

Encryption tool for python files and packages.

# Features

* Encrypting python scripts, packages and directories so they can be used as drop-in replacements.
* Loading key from environment variable
* Validating decrypted module against SHA256 signature
* Pack encrypted packages into executable zip file
* Works both with python 2 and python 3

# Usage

### Encryption:

    $ private [--key <key>] [--output <directory>] [-z] [--predicate <expression>] file.py [<path>...]

### Execution:

    $ private --output out example-0.0-py2-none-any.whl
    $ pip install out/example-0.0-py2-none-any.whl
    $ export PRIVATE_KEY=$(cat out/key.txt)
    # Use installed package as usual

The key must be hexadecimal string of length 32.
The file type is recognized by extension, Currently only .py and .whl files are supported.

### Encrypting source distribution

It is possible to encrypt source distributions (.tar.gz files), but private will first
build a wheel and then convert it, so the final output is alway a wheel.

### Code removal

The is an option to "tag" the source code with decorators.
Then, It is possible to pass expression to the private script that specifies
which tags to remove completely from the source.

For example:

    # example.py
    import private

    @private.tag("a", "b")
    def foo():
        return "foo"

    @private.tag("b", "c")
    def bar():
        return "bar"

    @private.tag("z")
    def baz():
        return "baz"

Then, code parts to remove can be specified with regular python expression.
To remove only the "bar" function, the predicate is simply: "c".
To remove "foo" and "baz" the predicate is "a or z", or "not c".

The private script is called like this:

    $ private --predicate "b and not a or z" example.py

will create encrypted file that contains only the function "foo".

### Packing into zip archive

It is possible to pack multiple packages into one executable zip file.
For example:

    $ mkdir test
    $ cd test
    $ pip download poetry
    $ private -z --output out *
    $ cd out
    $ export PRIVATE_KEY=$(cat key.txt)
    $ python packed.zip poetry

The result zip file can be directly executed and can call every `console_script`
in the packed packages.
Currently, the -z flag can be used only if the given paths are wheels or source distributions.

WARNING: the load time can be *very* slow with many pacakges.

# Testing

The package doesn't have it's own test suit.
It is tested in python 2 with the compiledb package as a wheel, and in python 3
with the full test suit of the construct package, on the original repository.

# Limitations

Private is not fully tested and is a hobby project in alpha stage, Use it at your own risk.

# Future plans

* Add support for parallel execution
* encrypt with faster crypto libraries
* Full coverage and functionality testing
* Adding documentation
virustotal3 1.0.8
Python 3 implementation of the VirusTotal v3 API

virustotal3
========
virustotal3 provides an easy way to use VirusTotal version 3 REST endpoints, including those exclusive to VirusTotal Enterprise such as Live Hunt, Retro Hunt and Zip Files that were not available in version 2.

### Changelog
#### 1.0.8
* Merged pull request #8

### Documentation
https://virustotal3.readthedocs.io/en/latest/

### Usage example
```
import os
import virustotal3.enterprise

API_KEY = os.environ['VT_API']

livehunt = virustotal3.enterprise.Livehunt(API_KEY)

rulesets = livehunt.get_rulesets()

print(rulesets)
```

Features
--------

- Access to many more features than the ones provided by the v2 API such as Live Hunt, Retro Hunt, Zip Files, Relationships, etc.
- Easy to use methods for all API endpoints (except Graphs).
- Simplified upload and download of files.
    - The API requires the use of a different endpoint for files larger than 32MB. the `File.upload()` method calculates the file size and picks the approriate endpoint.
- Written in Python 3.


Installation
------------
Installing with pip
`pip install virustotal3`

Install from repository
`python3 setup.py install`

Contribute
----------

- Issue Tracker: https://github.com/tr4cefl0w/virustotal3/issues
- Source Code: https://github.com/tr4cefl0w/virustotal3.git

Support
-------
The v3 API is in beta and under active development. While most of the implementation was tested and works perfectly, breaking changes might be introduced by VirusTotal. This rarely occurs, but recently URL.get_comments() and URL.get_votes() stopped working. An issue is current opened with VirusTotal (96772) and they are working on it.

If you are having issues, first make sure it does not come from the API itself. I'm in no way associated with VirusTotal. If it's an API bug, contact VirusTotal directly. Otherwise, open a GitHub issue.
ezrepl 1.1
A python package for making simple repls
Requires Python: >=3.6

# EZREPL (Python REPL Maker)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
## Description
A simple REPL maker. For python, made in python. Right now you can make a simple REPL and parse it by making a evaluator class. You can also hook up a HelpMenu class to the repl.

## Prerequisites
* [Requirements](requirements.txt)

## Installation
pip3 install ezrepl

## Contributing
Coming Soon

## License
MIT License [Here](LICENSE).

## Functionality
Simple Repl
```
import ezrepl

class MyRepl(ezrepl.Repl):
    def evaluator(self, ui):
        if ui == "hello":
            print("sup")

app = MyRepl(prefix="Hi: ", breaker="quit")
app.mainloop()
```
kx-pdf-tools 0.1.3
tools for reading and processing pdf content
Requires Python: >=3.6

## Tools for processing pdf files

This is a light-weighted library for processing pdf files in python.
One of the use-cases might be the extraction of pdf-annotations for ML / NLP.

Support for

* obtaining textual and vizual content of pdf files
* locating positions of words
* fetching pdf annotations
* adding a digital layer to image-pdfs
* re-creating a clean pdf file with annotations removed


## Dependencies

Main tools for reading pdf files are the PyPDF2 library. Non-python dependencies are
 
* [Poppler](https://poppler.freedesktop.org/),
* [Tesseract](https://tesseract-ocr.github.io/tessdoc/Home.html), and 
* [OpenCV](https://opencv.org/).

To install Poppler, see the guide in the [pdf2image readme](https://pypi.org/project/pdf2image/).

## How to

Some examples of usage are shown in the [notebook](./notebook/Demo.ipynb).

## Todo

* Add detection of page-orientation (upside-down, rotated,...) based on images.
* Add some of our experiments with "naive" table detection
* Get rid of PyPDF2 as [it is not maintained](https://stackoverflow.com/questions/63199763/maintained-alternatives-to-pypdf2); replace by PyMUPdf or pdfMiner.six.