semvec/pypi-packages huggingface dataset:
cherrypy-psycopg2 2.0
CherryPy tool to manage Psycopg 2 database connections

CherryPy-Psycopg2
=================

CherryPy-Psycopg2 is a simple CherryPy Tool to manage a
([thread-safe](https://www.psycopg.org/docs/pool.html#psycopg2.pool.ThreadedConnectionPool))
pool of database connections and make them available to handlers.

Import `cherrypy_psycopg2` to make the tool available in CherryPy's default toolbox.

The following configuration settings are understood:
  * `tools.psycopg2.minconn` - passed to the psycopg2 pool constructor
  * `tools.psycopg2.maxconn` - passed to the psycopg2 pool constructor
  * `tools.psycopg2.dsn` - passed to the psycopg2 pool constructor
  * `tools.psycopg2.cursor_factory` - passed to the psycopg2 connection's cursor() method

When the tool is enabled on a handler, it will collect a database connection
from the pool, expose a cursor as `cherrypy.request.psycopg2_cursor`,
execute the handler and then commit the transaction (if the handler was
successful or raised one of the
`cherrypy_psycopg2.COMMITTABLE_HANDLER_EXCEPTIONS`), or rollback the
transaction if the handler raised any other exception.

For example:

    class Root:
        @cherrypy.expose
        @cherrypy.tools.psycopg2()
        def index(self):
            cursor = cherrypy.request.psycopg2_cursor
            cursor.execute("SELECT now()")

            return cursor.fetchone()[0]
stroopwafel 1.1.0
A python package for STROOPWAFEL and GenAIS algorithms
Requires Python: >=3

## STROOPWAFEL
Based on https://arxiv.org/abs/1905.00910

A short documentation of stroopwafel implementation can be found here -> https://docs.google.com/document/d/15To_ragEkT13gYitBoCdhq38Z97byrjGtS49Mq8cxG8

# Installation
Make sure you have python3 installed in the system, if not it can be downloaded from https://www.python.org/downloads/. 

To install this package simply run <code>pip3 install stroopwafel</code>. [ If you are installing on our slurm cluster helios, then <code>python3 -m pip install --user stroopwafel</code> should work if you dont have pip3 ]

This package has the following dependencies. They should be automatically installed for you when you install this package.
<ul>
    <li>numpy</li>
    <li>scipy</li>
</ul>

To test if its installed, go to python3. On the terminal: <code>python3</code>.
Inside the python prompt, <code>import stroopwafel</code> should not throw any errors.

# Running
Create a script similar to interface_genais.py in the test directory. Make sure you have the external application executable (such as COMPAS) defined in this script. Provide the other details and functions and run it using <code>python filename.py</code>. 

Note that stroopwafel is independent of the external application and does not have to reside in the same directory. 

Additionally you can pass in optional arguments in the command line:
<br/>
optional arguments:<br/>
  -h, --help            show this help message and exit<br/>
  --num_systems NUM_SYSTEMS
                        Total number of systems<br/>
  --num_cores NUM_CORES
                        Number of cores to run in parallel<br/>
  --num_per_core NUM_PER_CORE
                        Number of systems to generate in one core <br/>
  --debug DEBUG         If debug of COMPAS is to be printed <br/>
  --mc_only MC_ONLY     If run in MC simulation mode only <br/>
  --run_on_helios RUN_ON_HELIOS
                        If we are running on helios (or other slurm) nodes <br/>
  --output_filename OUTPUT_FILENAME
                        Output filename <br/>
</code>
ALSHBG 0.0.6
A small example package
Requires Python: >=3.6

<h1 align="center">ALSHBG</h1>
<p align="center">It is a project that includes all social networking sites, and the most important features of the project is a private library whose work is to verify the availability of the user name if it is available or not available on more than one social site</p>

## Installation :
```
pip install ALSHBG
```
## ***The method of work***
* Open a file in a text editor and name the file eg
ALSHBG.py

For example, we will check the username on Tiktok
```python 
python3 ALSHBG.py 

from ALSHBG import check

ck = check()

BG = ck.Tiktok("username")

print(BG)
```
* If the result is 200, this indicates that your Tiktok username is available☑️

* If the result is 404, this indicates that the Tiktok username is not available ❎

## ***The sites available in the project are***

* Instagram
* Tiktok 
* Snapchat 
* Telegramg 
* Tellonym 
* Twitch 
* Xbox 
* github 
* Reddit 
* Gmail 
* Hotmail 
* Yahoo 
* Steam 
* Sony 
* Like 

## Follow us on social media
[![Telegram](https://img.shields.io/badge/Telegram-ALSH_3k-orange?style=for-the-badge&logo=Telegram)](https://t.me/ALSH_3K)
[![Youtube](https://img.shields.io/badge/Youtube-ALSH-orange?style=for-the-badge&logo=Youtube)](https://youtube.com/channel/UCUNbzQRjfAXGCKI1LY72DTA)
[![Instagram](https://img.shields.io/badge/Instagram-ALSH-green?style=for-the-badge&logo=instagram)](https://Instagram.com/alsh_bg)
[![Telegram](https://img.shields.io/badge/Telegram-ALSH-green?style=for-the-badge&logo=Telegram)](https://t.me/XXCBB)