semvec/pypi-packages huggingface dataset:
agios 2017.7.1
Simple genetic algorithms framework for Python
License: MIT
Keywords: ai genetic algorithms

## What is agios?

agios is an open source, Python 3 library for playing with genetic algorithms. Main functionality includes:   

* Generic API allowing to easily implement custom tasks

* Highly customizable algorithm execution cycle

* Multithreading support

* Built-in support for images processing

* Multidimensional data processing



TODO list includes:

* Support for PyCUDA and processing on GPU



## How to install it?

```

pip install agios

```



## Where is an example code?

```python

from agios import evolution

from agios import extras



blueprint = extras.load_normalized_image('input/mona_lisa.jpg', extras.Greyscale)



evolution_problem_solver = evolution.SimpleSolver(

    population_size=100,

    best_samples_to_take=2,

    blueprint=evolution.NumpyArraySample(blueprint),

    mutator=evolution.SimplePaintbrushMatrixMutator((10, 15), (10, 50)),

    crosser=evolution.MeanValueMatrixCrosser(),

    loss_calculator=evolution.SquaredMeanMatrixLossCalculator(),

    initial_sample_state_generator=evolution.RandomMatrixGenerator(blueprint.shape)

)



for _ in range(10000):

    evolution_problem_solver.step()

```



Live examples can be found in examples/ directory.



## How to contribute?

Report observed issues or provide working pull request. Pull request must be verified before merging and it must include the following:

* Unit tests

* Public API marked with static typing annotations (typing module)

* Public classes must include brief documentation
pg_stats 0.0.1.dev1
PostgreSQL service populator.
License: MIT
Keywords: PostgreSQL
stats

Tool: pg_stats

Description:
************

This program iterates over all the databases and their datasets, get and shows these info:
- Average of rows per database
- Total rows in the entire server

How to:
******

Note: The next commands are meant to be run in the same that directory in which this Readme.txt file is stored.

- Disable any previously activated virtualenv:

$ deactivate

- Setup environment:

from this directory, run the next command:

$ ../../setup_env.sh

- Enable virtualenv:

$ source venvs/3_stats/bin/activate

- Get the program help:

$ pg_stats -v

- Run the tool:

$ pg_stats
pg_check_and_report 0.0.0
PostgreSQL service populator.
License: MIT
Keywords: PostgreSQL
check
report

Tool: 2_check_and_report

Description:
************

This program performs some checks and return a report in case some of these checks fail:
- The number of databases created is under a specific threshold parametrized through the -m argument.
- The disk used by postgresql is not over a percentage of the total disk. The specific percentage is parametrized through the -p argument.
- The number of connections stablished to the database is not over a percentage of the max connections value. The specific percentage is parametrized through the -c argument.


How to:
*******

Note: The next commands are meant to be run in the same that directory in which this Readme.txt file is stored.

- Disable any previously activated virtualenv:

$ deactivate

- Setup environment:

$ ../../setup_env.sh

- Enable virtualenv:

$ source venvs/2_check_and_report/bin/activate

- Get the program help:

$ ./run -v

- Run the tool (example):

This command checks:
the amount of databases is less than 10,
the percentage of partition disk used by postgresql is less than 0.2%, and
the percentage of active connections to the postgresql service is less than 2.5%.

$ ./run.py -m 10 -p 0.2 -c 2.5
pg_populator 0.0.4
PostgreSQL service populator.
License: MIT
Keywords: PostgreSQL
populator

Tool: pg_populator

Description:
************

This program populates an already existing PostgreSQL service with:
- N databases. The specific amount of databases is parametrized through the -n argument.
- N tables inside each database. The specific amount of tables is parametrized through the -t argument.
- Some data rows inside every table. The specific amount of rows is parametrized through the -r argument.

This program will make sure that local postgreSQL service contains, at least, the amount of
databases and tables defined in the required command line arguments -n (--num_db) and -t (--num_tables) per database.
It will also add the amount of rows specified in the -r parameter.
This program will NOT delete any database, table or row.


Requirements:
*************

A running postgreSQL database must be previously configured.
To make this software works, the user that runs this script must have the ~/.pgpass properly configured.
To get this done, I recommend you to use the scripts stored in the next repository: https://gitlab.com/jaqm/carto_test.git


How to's:
*********

Note: The next commands are meant to be run in the same that directory in which this Readme.1st file is stored.

- Disable any previously activated virtualenv:

$ deactivate

- Enable virtualenv:

$ source venvs/1_populate_db/bin/activate

- Get the program help:

$ ./run -v

- Run the tool (example):

Run the next command to create 10 databases with 20 tables and insert 100 rows each of them.

$ ./run -n 10 -t 20 -r 100
kahipwrapper 0.1.7
KaHIP Python Wrapper
License: MIT

KaHIP Python Wrapper
====================

Installation
------------

::

	pip install kahipwrapper


Usage
-----

::

    from kahipwrapper import kaHIP

    vwgt = None
    xadj = [0,2,5,7,9,12]
    adjcwgt = [1,1,1,1,1,1,1,1,1,1,1,1]
    adjncy = [1,4,0,2,4,1,3,2,4,0,1,3]
    nparts = 2
    imbalance = 0.03
    suppress_output = False
    mode = kaHIP.STRONG
    seed = 0

    ncount = len(xadj) - 1
    nparts = 2

    print(ncount)

    print(kaHIP.kaffpa_balance_NE(ncount, vwgt, xadj, adjcwgt, adjncy,
                                  nparts, imbalance, suppress_output,
                                  seed, mode))
    print(kaHIP.kaffpa(ncount, vwgt, xadj, adjcwgt, adjncy, nparts,
                       imbalance, suppress_output, seed, mode))

    print(kaHIP.node_separator(ncount, vwgt, xadj, adjcwgt, adjncy, nparts,
                               imbalance, suppress_output, seed, mode))

For more information, please visit KaHIP site `here <http://algo2.iti.kit.edu/kahip/>`__
naposapi 0.1
API for lookup on the NAPOS database
License: MIT
Requires Python: >=3

naposapi
========

**Use at your own risk**

A simple API to lookup drugs on the database for acute porphyria (developed by NAPOS).

Usage
-----

::

    >>> import naposapi
    >>> naposapi.lookup_classification('B01AA03')
    ClassificationResult(code='PNP', level=1, name='Probably not porphyrinogenic', description='Used as a first hand choice. No precautions needed.')