semvec/pypi-packages huggingface dataset:
ga2 1.0.0.post1
A simple robust Genetic Algorithm utility

# Genetic Algorithm Utility for python

### What is Genetic Algorithm ?
Genetic Algorithm is inspired by the natural selection process in our environment. GA is very good for optimisation problems , read more about  [GA here](https://en.wikipedia.org/wiki/Genetic_algorithm) . 

### The ga2 module 
ga2 is a highly flexible and easy to use utility module implementing Genetic Algorithm. 

### Installation
* standard pip3 installation is supported
```
pip3 install ga2
```

* upgrading
```
pip3 install --upgrade --no-cache ga2==1.0.0
```

* import the Genetic Algorithm utility as 
```
import ga2.gaDisc as gad

session1 = gad.Session()
print(session1.sessID)
```
this should print the session ID of that session

### Usage
ga2 is designed to be flexible and also simple to use for a variety of use cases, check the [EXAMPLES.md](EXAMPLES.md) for examples. Documentation will be done as soon as a stable stage is reached

### Current Development
gaDisc (Genetic Algorithm Discrete) is working and is in its first release stage, a lot of planning and designing needs to be done for gaCont (Genetic Algorithm continuous), which I hope will be soon !.
*  - [x] gaDisc
*  - [ ] gaCont

Open to ideas , and contributions !
easy-utils 0.0.6
Easy to use utilities:  alerts, logging, running background processes, file and directory checking

Functions I've used accross multiple projects, more info in this README to come

    #alert(alarm, x) counts down from x and prints int x and a string alarm to console

    alert('Till countdown', 10)

    #check_dir(child, parent) looks for a child directory in a parent directly, if there is no child dir then one is created 
    
    check_dir('log', '~')

    #check_file(fname, file_dest) ensures that a file is not in a directory, if it is not in the directory then the a path is provided for file creation 
    
    check_file('somefile.txt', '~/projects')

    #log_it(text, dest_dir) takes in string text and a string file destination folderand creates a file named with timestamp
    
    log_it('this is a test', './log/')

    #run_in_background(args) takes in a string shell command and runs it as a background process
     run_in_background('firefox')

    #limit_proc(proc,limit) takes in a string process name and an int limit, limit represents a threshold of a certain process. If limit is reached then a simple spinlock activates and activly waits until the process count is no longer at the limit

    limit_proc('curl', 5)

    #kill_proc(proc) takes in a string process name and kills processes with that name

    kill_proc('curl')
audentes 0.1.9
A package for writing component tests with docker compose

Audentes
========

A package for writing component tests with docker compose

Example:

docker-compose.yml

~~~~
version: '2.1'
services:
  web:
    image: nginx
    ports:
     - "80"
~~~~


test.py

~~~~
import audentes
import requests

system = audentes.load_system() #Defaults to docker-comose.yml
system.start()
system.wait_for_service("web")  #Waits for web service to respond with status code 200 on /

host = system.endpoint("web").host() # Now we can do some testing
response = requests.get("http://{}/".format(host))

assert response.status_code == 200 # Assert that we get the response we expect
~~~~
medmij-lists 0.1.0
Python implementation of de MedMij ZAL, OCL, Whitelist and GNL

# medmij-python

Python implementation of de MedMij ZAL, OCL, Whitelist and GNL

## Installation

```shell
$ pip install medmij-lists
```

## Usage

### Whitelist

```python
import urllib.request

import medmij_lists

WHITELIST_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_Whitelist_example.xml"

with urllib.request.urlopen(WHITELIST_URL) as u:
    whitelist_xml = u.read()

whitelist = medmij_lists.Whitelist(xmldata=whitelist_xml)

print('rcf-rso.nl' in whitelist)
print('example.com' in whitelist)
```

Run `whitelist.py`:

```shell
(env) $ python whitelist.py
True
False
```

### ZAL

```python
import urllib.request

import medmij_lists

ZAL_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_Zorgaanbiederslijst_example.xml"

with urllib.request.urlopen(ZAL_URL) as u:
    zal_xml = u.read()

zal = medmij_lists.ZAL(xmldata=zal_xml)
za = zal["umcharderwijk@medmij"]
print(za.gegevensdiensten["4"].authorization_endpoint_uri)
```

Run `zal.py`:

```shell
(env) $ python zal.py
https://medmij.za982.xisbridge.net/oauth/authorize
```

### OCL

```python
import urllib.request

import medmij_lists

OCL_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_OAuthclientlist_example.xml"

with urllib.request.urlopen(OCL_URL) as u:
    ocl_xml = u.read()

ocl = medmij_lists.OAuthclientList(xmldata=ocl_xml)
client = ocl["medmij.deenigeechtepgo.nl"]

print(client.organisatienaam)
```

Run `ocl.py`:

```shell
(env) $ python ocl.py
De Enige Echte PGO
```

### GNL

```python
import urllib.request

import medmij_lists

GNL_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_Gegevensdienstnamenlijst_example.xml"

with urllib.request.urlopen(GNL_URL) as u:
    gnl_xml = u.read()

gnl = medmij_lists.GNL(xmldata=gnl_xml)
gd = gnl["1"]

print(gd.weergavenaam)
```

Run `gnl.py`:

```shell
(env) $ python gnl.py
Basisgegevens Zorg
```

## Version Guidance

This library follows [Semantic Versioning](https://semver.org/).
The versions of the Afsprakenset are mapped to the versions of the library as follows:

| Version Afsprakenset       | Status     | Version library |
|----------------------------|------------|-----------------|
| [Afsprakenset release 1.1] | Latest     | 0.1.*           |

[Afsprakenset release 1.1]: https://afsprakenstelsel.medmij.nl/display/PUBLIC/Afsprakenset+release+1.1