semvec/pypi-packages huggingface dataset:
python-steamgriddb 1.0.5
A Python wrapper for SteamGridDB's API
License: MIT
Keywords: steamgriddb,steamgrid,steam,grid,db,api,wrapper

# python-steamgriddb
A Python API wrapper for SteamGridDB.com

[![PyPI](https://img.shields.io/pypi/v/python-steamgriddb?style=for-the-badge)](https://pypi.python.org/pypi/python-steamgriddb)
![APM](https://img.shields.io/apm/l/github?style=for-the-badge)

### Installation
```shell
pip install python-steamgriddb
```

## Getting Started
#### Get your API key:
[You can generate an API key on your user preferences page.](https://www.steamgriddb.com/profile/preferences)


Initialize the SteamGridDB using your API key to connect with API
```python
from steamgrid import SteamGridDB

sgdb = SteamGridDB('AuthKey')
```

#### Search for a game:
```python
# Search for Witcher game
result = sgdb.search_game('Witcher')
```

#### Get a game object without searching:
```python
# Get a game using a Game ID
game = sgdb.get_game_by_gameid(1234)

# Get a game using Steam App ID
game = sgdb.get_game_by_steam_appid(567890)

# Returning the game as JSONObject
game.to_json()
```

#### Do something with a game object:
```python
# Return the game name
game_name = game.name

# Return the game release date as datetime
game_release_date = game.release_date
```

#### Get Assets:
```python
from steamgrid import StyleType, PlatformType, MimeType, ImageType

# Get grids list without filter
grids = sgdb.get_grids_by_gameid([1234])

# Get grids list by filter (Multiple filters are allowed)
grids = sgdb.get_grids_by_gameid(game_ids=[1234], styles=[StyleType.Alternate], mimes=[MimeType.PNG], types=[ImageType.Static], is_nsfw=True)

# Get list grids using platform
grids = sgdb.get_grids_by_platform(game_ids=[1234], platform=PlatformType.origin)
```

#### Do something with a grid object:
```python
# Return object of grid's author
grid_author = grid.author

# Return grid's score
grid_score = grid.score
```

#### Some grid object methods:
```python
# Return true if grid be nsfw
grid_is_nsfw = grid.is_nsfw()

# Returning the grid as JSONObject
grid.to_json()
```

#### Delete a grid
```python
# Delete a grid with its object
grid.delete()

# Delete a grid with its ID
sgdb.delete_grid([230227])
```

### Star History

[![Star History Chart](https://api.star-history.com/svg?repos=ZebcoWeb/python-steamgriddb&type=Date)](https://star-history.com/#ZebcoWeb/python-steamgriddb&Date)

### Donate address:

**BTC:** *bc1q8ngvcph2mwtlza8w452dxcjc08wgqa0pdnmndz*
gazerr 0.1.1
Python library and CLI for estimation of gaze duration error.
License: MIT

# Gaze Duration Error

Gazerr is an application for estimating the expected error in a gaze duration
measurement derived from repeated application of a point of gaze model.
It is particularly applicable to machine learning models that work with device
cameras to predict a stream of gaze fixation points from facial images.

The method requires an input dataset of validation points from the point
of gaze predictive model. This data is used to generate the probability 
distribution of true gaze durations given a measured gaze duration.

### Installation

Install from source code or from PyPi

### Usage

The application can be used from the command line by passing in a path to the
calibration file and the parameters for the duration measurement that will be
bounded. Note: that the penultimate two parameters should be comma separated sets
of integers that depict x,y coordiantes in pixels. The measurement length and
session lenth should be expressed in milliseconds.

The final parameter is a path to a directory in which to store the raw results

```
gazerr <CALIBRATION> <MEASUREMENT> <SESSION> <TARGET TOP LEFT> <TARGET BOTTOM RIGHT> <RESULTS>
```

To use the application without installing it you can employ the runner script.
Example below, using the supplied calibration data:

```
mkdir results/MREC_MAE_50
python ./gazerr-runner.py data/validation_50_MAE.csv 400 1000 40,40 340,290 results/MREC_MAE_50
```

Alternatively, you may inspect the code and use the library functions directly
inside your own application.

## Experiments

All experiments for the research paper can be executed via a series of scripts.

Create synthetic calibration data by running
```
python scripts/generate_datasets.py
```

Then execute the gazerr exeriments with the following two commands:
```
scripts/RUN_EXPERIMENTS.sh
scripts/RUN_BIAS_EXPERIMENTS.sh
```

Finally, analyse the results and generate the plots with
```
scripts/ANALYSE_RESULTS.sh
```

### Documentation

Additional documentation to be made available on 
[Read the Docs](https://gazerr.readthedocs.io/en/latest/)

If you use `gazerr` in your research please cite the following article

```
@article{hawkins2022,
   author = {John Hawkins},
   year = {2022},
   title = {Estimating Gaze Duration Error from Eye Tracking Data},
   journal = {TBC}
}
```
Korrektor-Py 1.0.0
Python wrapper for the https://korrektor.uz/api
License: MIT
Requires Python: >=3.8

# :gb: **Korrektor-Py**

![](assets/logo.png)

<p align="center">
    <b>Korrektor-Py</b> - python library & wrapper for API of the https://korrektor.uz
</p>

## **Installation**

Using `pip`:

```bash
pip3 install --upgrade korrektor-py
```

Build & install from source code:

```
git clone https://github.com/AbduazizZiyodov/korrektor-py.git
cd korrektor-py/

python3 setup.py sdist bdist_wheel && cd dist/
pip install Korrektor_Py-*.whl

```

<hr>

- Owner: [Manuchehr Usmonov](https://github.com/con9799)
- Author of this library: [Abduaziz Ziyodov](https://github.com/AbduazizZiyodov)



# :uzbekistan: **Korrektor-Py**

![](assets/logo.png)

<p align="center">
    <b>Korrektor-Py</b> - https://korrektor.uz loyihasining API'si uchun ishlab chiqilgan python dasturlash tilidagi kutubxona.
</p>

## **O'rnatish**

`pip` yordamida:

```bash
pip3 install --upgrade korrektor-py
```

Loyihani asl manba kodidan `build` qilib, so'ng o'rnatish:

```
git clone https://github.com/AbduazizZiyodov/korrektor-py.git
cd korrektor-py/

python3 setup.py sdist bdist_wheel && cd dist/
pip install Korrektor_Py-*.whl

```

<hr>

- Loyiha asoschisi: [Manuchehr Usmonov](https://github.com/con9799)
- Ushbu kutubxona muallifi: [Abduaziz Ziyodov](https://github.com/AbduazizZiyodov)
tinydb-storage 0.1.0
Wrapper tinydb storage
License: MIT

# tinydb-storage

Tiny db storage extension, this is an unofficial from [tinydb](https://github.com/msiemens/tinydb). I'm creating this
extension based on my case only.


## Installation
```shell
pip install tinydb-storage
```

## Storage extension to use Tinydb

* Memory storage
* File storage
* Redis storage
* S3 storage

## Memory storage example

```python
import requests
from tinydb import TinyDB, Query
from tinydbstorage.storage import MemoryStorage

db = TinyDB(storage=MemoryStorage)

def insert_data():
    resp = requests.get("https://jsonplaceholder.typicode.com/users")
    db.table("users").insert_multiple(resp.json())
```

## File storage example

```python
import os

import requests
from tinydb import TinyDB, Query
from tinydbstorage.storage import FileStorage

db_path = os.path.join(os.path.dirname(__file__), "db.json")
db = TinyDB(path=db_path, storage=FileStorage)

def insert_data():
    resp = requests.get("https://jsonplaceholder.typicode.com/users")
    db.table("users").insert_multiple(resp.json())
```

## Redis storage example

```python
import requests
from tinydb import TinyDB, Query

from tinydbstorage.storage import RedisStorage

db = TinyDB(storage=RedisStorage, redis_uri="redis://:rahasia@localhost:6379/0")

def insert_data():
    resp = requests.get("https://jsonplaceholder.typicode.com/users")
    db.table("users").insert_multiple(resp.json())
```

## S3 storage example

```python
import requests
from tinydb import TinyDB, Query
from tinydbstorage.schema import S3ConfigSchema
from tinydbstorage.storage import S3Storage

config = S3ConfigSchema.parse_obj({
    "aws_bucket_name": "foo",
    "aws_file_path": "foo/bar/baz.json",
    "aws_region_name": "ap-southeast-1",
    "aws_access_key_id": "foobar",
    "aws_secret_access_key": "foobar",
})

db = TinyDB(storage=S3Storage, config=config)

def insert_data():
    resp = requests.get("https://jsonplaceholder.typicode.com/users")
    db.table("users").insert_multiple(resp.json())
```

## Help & Bugs

[![contributions welcome](https://img.shields.io/badge/contributions-welcome-blue.svg)](https://github.com/FerdinaKusumah/tinydb-storage/issues)

If you are still confused or found a bug,
please [open the issue](https://github.com/FerdinaKusumah/tinydb-storage/issues). All bug reports are appreciated, some
features have not been tested yet due to lack of free time.

## License

[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

**tinydb-storage** released under MIT. See `LICENSE` for more details.
tnote-cli 0.0.6
A simple Terminal-based notes app
License: MIT

# tnote-cli
A simple notes Command line tool, because I really got tired of either:

A. going from the terminal into another app to write something down for later
or 
B. Forgetting which configuration file is where and not having a convenient place where all my notes could be kept

Plus I really just wanted a project to work on.

## Installation 

```
pip install tnote-cli
```


## Usage 

Using tnote is pretty simple when it really comes down to it as there is only one command that has several options. 


#### Index

The index of all the notes you've created can be accessed by `$ tnote` with no arguments.
At any point you can use `$ tn` as it is the same because who has time for all those extra keystrokes.

```
$ tnote 
|-------------------------INDEX-------------------------|


|-------------------------RECENT------------------------|
 Note ID: todo
 Name: todo.md
 Path: /Users/username/.tnote/notes/todo.md
|-------------------------------------------------------|
    
            _________________________________
            

|-------------------------------------------------------|
 Note ID: todo
 Name: todo.md
 Path: /Users/username/.tnote/notes/todo.md
|-------------------------------------------------------|

```
At first your index obviously won't look like this but create a note and you'll be good.
Up at the top there it will show you want is your most recently edited note which can be accessed 
using the `$ -r` flag.

#### Creating and Editing Notes

To create a new note you need only type in a name for a note like so `$ tn EXAMPLE` and a note will be created and 
you'll begin editing it. You can also specify editing with the `$ -e` flag. The editor used will be the `$EDITOR` 
environment variable but it can also be changed in the config at `~/.tnote.json`

```
$ tnote -e Example
```

```
$ tn Example
```

#### View

Tnote was designed with using markdown in mind as it is how I frequently take notes as 
such if you wish to render it from your terminal use the view flag.
```
$ tnote -v Example
```

#### Moving and Renaming
If you wish to rename a file simply do so by passing the same path other than the filename to the move option:
```
$ tnote Example -m ~/tnote/notes/new_name.md 
```
otherwise just pass a fully qualified path with filename to move the file:
```
$ tnote Example -m ~/Example.md
```


#### Delete
To permenantly delete a note:
```
$ tnote -d Example
```


#### Change ID
IF you want to change the Id you use to access notes you do so as shown below 
``` 
$ tnote Example -i new-id
```
to access this note in the future you'll use `new-id`

#### Execute 

From time to time I like to have some simple scripts on-hand for quick access 
so I have allowed a way to simply execute from my notes 

Execute a file that has permissions:
```
tnote Script -x
```

Give a file permission (chmod) and execute it:
```
tnote Script -xx
```