semvec/pypi-packages huggingface dataset:
randomPlusPlus-tools 1.0.2
more functions to "random" library
Requires Python: >=3.6

# RandomPlusPlus Tools
#### This library will help you when writing code using the ```random``` library

</br>

A simple code example and its implementation using the ```RandomPlusPlus_Tools``` library:</br>

#### Without a library

```
import random

list = [1,2,3,4,5,6,7,8]
not_to_list = [1,3,6]
x = random.choise(list)
while True:
    if x in not_to_list:
	x = random.choise(list)
    else:
	print(x)
```

#### And with the RandomPlusPlus_Tools library

```
import RandomPlusPlus_Tools as rppt

print(rppt.Rlist([1,2,3,4,5,6,7,8], [1,3,6])
```

</br>

both there and there the answer will be the same (any number from the list except 1, 3 and 6)
but the length of the code is noticeably less using the library
appyratus 3.0.4
Not your momma's Python toolkit

# Appyratus
Not your momma's Python toolkit

## Links 
- Web https://appyrat.us
- Source https://github.com/gigaquads/appyratus
- Docs https://docs.appyrat.us
- Gigaquads Dev https://gqd.io
- Gigaquads https://gigaquads.com
agnm 1.0.3
A package for physics motion calculations
Requires Python: >=3.10

# Physics equations of motion solver
This is a package for physics motion calculations.

# Installation
```pip install agnm```

# Usage
### Displacement
Displacement is calculated using formula: 
```math
x = (vi-vf)/2*t 
```

```python
from agnm.motion import displacement

displacement(1, 2.3, 3)  # output: 2.65
# or use named variables
displacement(vf=2.3, t=1, vi=3)  # output: 2.65
```

### Change in position
Change in position is calculated using formula: 
```math
x = vi*t+1/2*a*t^2
```

```python
from agnm.motion import change_in_position

change_in_position(1, 3, 2)  # output: 12.0
# or use named variables
change_in_position(a=2, t=3, vi=1)  # output: 12.0
```

### Final velocity
Final velocity is calculated using one of formulas: 
```math
vf = (vi^2+2a*x)^1/2
vf = vi+a*t
```

```python
from agnm.motion import v_final

# using first equation
v_final(vi=1, a=3, x_delta=1.5)  # output: 10.0
# using second equation
v_final(vi=1, a=2.3, t=2)  # output: 5.6
```

### Average velocity
Average velocity is calculated using one of formulas: 
```math
va = x/t
va = (vi+vf)/2
```

```python
from agnm.motion import v_average

# using first equation
v_average(x_delta=1, t=3)  #output: 0.3333333333333333
# using second equation
v_average(vi=1, vf=2.6)  #output: 0.8
```

### Acceleration
Acceleration velocity is calculated using one of formulas: 
```math
a = v/t
a = (vf+vi)/t
```

```python
from agnm.motion import acceleration

# using first equation
acceleration(v_delta=5, t=2.5)
#output: 2.0
# using second equation
acceleration(vi=1, vf=6, t=2.5)
#output: 2.0
```
pgwrapper 0.3.5
A simple, fast way to access postgresql

# pgwrapper

*A simple, fast way to access postgresql in python.*


### Description

* It is a postgresql python connection pool at lower layer.

* It is a mongo-like query formula system upper layer.

* It is a new version to access postgresql in python3.


### Install
pip install pgwrapper


### Usage

```
>>> import pgwrapper
>>> pg = pgwrapper.PGWrapper(
        dbname='postgres',
        user='postgres',
        password='',
        host='127.0.0.1',
        port=5432)
>>> r = pg.select('company', 'id, name', 'address is not null', 'limit 2')
>>> print(r)

[(12, 'sun'), (34, 'moon')]
```

###### select
```
    >>> select('hospital', 'id, city', control='limit 1')
    select id, city from hospital limit 1;


    >>> select('hospital', 'id', 'address is null')
    select id from hospital where address is null;
```

###### update
```
    >>> update('dept', {'name': 'design', 'quantity': 3}, {'id': 'we4d'})
    update dept set name='design', quantity=3 where id='we4d';

    >>> update('dept', {'name': 'design', 'quantity': 3}, 'introduction is null')
    update dept set name='design', quantity=3 where introduction is null;

    >>> update('physician', {'$inc': {'status': -10}, 'present': 0}, {'id': 'someid'})
    update physician set status=status+-10, present=0 where id='someid';
```

###### insert
```
    >>> insert('hospital', {'id': '12de3wrv', 'province': 'shanghai'})
    insert into hospital (id, province) values ('12de3wrv', 'shanghai');

```

insert use list way:
```
    >>> insert_list('hospital', ['id', 'province'], ['12de3wrv', 'shanghai'])
    insert into hospital (id, province) values ('12de3wrv', 'shanghai');
```

insert if the record not in the table:
```
    >>> insert_inexistence('hospital', {'id': '12de3wrv', 'province': 'shanghai'}, {'id': '12de3wrv'})
    insert into hospital (id, province) select '12de3wrv', 'shanghai' where not exists (select 1 from hospital where id='12de3wrv' limit 1);
```


###### delete
```
    >>> delete('hospital', {'id': '12de3wrv'})
    delete from hospital where id='12de3wrv';

```

###### join
comman join
```
    >>> joint('user', 'name, id_number', 'medical_card', 'number', 'id', 'user_id', 'inner_join')
    select u.name, u.id_number, v.number from user as u inner join medical_card as v on u.id=v.user_id;

```

left join
```
    >>> select_join('hospital', 'id', 'department', 'hospid')
    select hospital.id from hospital left join department on hospital.id=department.hospid where department.hospid is null;
```



### Issue

```Error: pg_config executable not found.```
If you meet this following error when installing psycopg2, you may need to install extra library.

In Ubuntu:
```sudo apt install libpq-dev```

In macOs:
```brew install postgresql```