semvec/pypi-packages huggingface dataset:
product-ouroboros 1.0.0
A library for simple video editing
License: MIT
Keywords: simple video editing

ouroboros
=========

A wrapper for the moviepy library.

Required -Python 3.\_ -moviepy

Common Errors Encountered
-------------------------

ImageIO and FFMPEG Error
~~~~~~~~~~~~~~~~~~~~~~~~

Open an interactive python shell by running:

::

    python3

Within the interactive shell run the commands:

::

    import imageio
    imageio.plugins.ffmpeg.download()

This will fix the issue.

Not Valid Win32 Application.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you get the error:

::

    'osError: [WinError 193] %1 is not a valid Win32 application' 

then your ffmpeg doesn't match your python install, 32-bit or 64-bit. A
manual install of ffmeg can fix this.
tiny_crash_reporter 0.4
A Python library to log any exceptions to standard out.
License: MIT
Keywords: crash report

Tiny Crash Reporter
====================

This library is designed to print any crashes which a Python program encounters when it is run to standard out. 

Install:
pip install TinyCrashReporter

Setup: 
1. Import the library into your program.
2. Add the line -> sys.excepthook  = tinycrashreporter.crashReportExceptHook <- bellow oyu imports.
3. Run your program in the command line e.g. Python3 ~/PythonFiles/MyTinyCrashReporterProgram.py

Warning: IDLE and other IDE's appear to use the same method override as Tiny Crash Reporter and are not currently supported. Please run in a command line instead.

Example:
Add the following lines of code into a blank python file.
#!/usr/bin/env python
# set up tiny crash reporter:
import sys

import (...any_other_module...)

import tinycrashreporter


sys.excepthook  = tinycrashreporter.crashReportExceptHook


# Add some crashy code 

1/0

Blank file:

A blank file, which includes the code above and conforms to the specification has been included LibraryLocation/Samples/ImportedLibraryOnly.py

In teminal run -> python3 ImportedLibraryOnly.py
The library also works in python 2.7.

File with options:

A file called CrashyProgram.py has also been set up which supports the execution of code passed as an argument. This is for testing purposes and this code should not be published as part of a release project due to it's inherent insecurities.

In terminal run -> python3 CrashyProgram.py

Unit tests:

8 Tests are available in LibraryLocation/CrashTest.py to run these, manually edit the file path in CrashTest.py to point to CrashyProgram.py. Then...

In terminal run -> python3 ~/SampleLocation/CrashTest.py -v

One of the tests requests user to input some crashy code. This facility doesn't work with " or ' characters and the inclusion of some other special characters may cause similar errors. More work is needed to properly escape the input.
opentc-icap 0.5.0
ICAP Server for OpenTC (A text classification engine using machine learning)
License: MIT
Keywords: machine learning cnn svm bayesian

ICAP Server for the OpenTC
==========================

The Internet Content Adaptation Protocol (ICAP) is a lightweight
HTTP-like protocol specified in RFC 3507 which is used to extend
transparent proxy servers. It is used generally for a virus scanner or
content filtering.

The purpose of this icap-server-opentc is to demonstrate one of the
usages of the OpenTC server. In this case, the icap server is used as
Data Leak Prevention (DLP). It is listening on the icap server's default
port 1344. The squid-cache is used as the http/s proxy (it can be also
any other proxy servers). It is configured to connect to the icap server
for the content filtering. Any out going http traffics through the squid
proxy will be sent to the icap server, which will then forward it to the
OpenTC server. OpenTC server analyses the data and classify it based on
the pre-trained data. The result of the text classification is sent back
to the icap server, which will decide if the outgoing traffic should be
blocked or allowed.

Requirements
------------

-  Python 3.x
-  opentc
-  PyYAML
-  pyicap 1.0b1
-  python-magic
-  python-multipart

TODO
----

-  the icap server should monitor the availability of the OpenTC server.
   In case it is not up or running, this icap server should try to
   reconnect it again several times in difference interval (i.e: the
   interval of the first 3 reconnection could be 10 seconds, and after 3
   unsuccessful attempts to reconnect, the interval connection time
   should be changed to 300 seconds). Currently, the icap server has to
   be restarted manually after the OpenTC server is died or restarted.
-  Currently the decision to take, either the traffic is blocked or
   allowed, is implemented using manual "for\_loop-if-elif" sequences,
   which maybe not easy to understand or error prone. In the future, the
   software would use a rule engine (if there is any) to simplify the
   creation of complex rules.