semvec/pypi-packages huggingface dataset:
joypyviewer 1.7.0
Simple retro joystick viewer tool for streamers.
License: MIT License

# joypyviewer

Simple retro joystick viewer tool for streamers written in Python.

## About

I wrote this program as an alternative to well known JavaScript web-based joystick viewers and other input viewers that are very big and not simple or intuitive to install and use.

Joypyviewer can be useful to people who stream or record retro gameplays. Joystick layouts for classic retro consoles such as the NES, SNES, Master System and Genesis can be used. New layouts will be added eventually, graphically improved over time and functions will be kept as simple as they can be.

## Prerequisites

- [tkinter](https://docs.python.org/3/library/tkinter.html) (Tk Interface) is absolutely necessary to draw the main GUI. Some Linux distributions already offer Python bundled with tkinter by default. In most Linux distributions you must install tkinter via their package manager under root. In Windows systems tkinter comes as an optional feature when you install Python via an .exe installer.

Check if tkinter is installed using this shell command. It should output the current installed version in the system.

`$ python -c "from tkinter import TkVersion; print(TkVersion)"`

## Dependencies

- [Pygame](https://www.pygame.org) for joystick device discovery, events manipulation and general functioning. Pygame needs several dependencies, if you opt to compile it please refer to [this](https://www.pygame.org/wiki/Compilation) website.

- [TOML](https://github.com/toml-lang/toml) for custom joystick configuration and mapping.

## Installation

First make sure you have the correct $PATH variable assigned to local binaries in ~/.profile and re log-in to the user session. Python user executables installed with pip can be found in the ~/.local/bin directory and executed via shell + tab completion using Bash or similar shell.

```bash
LOCAL_BIN="$HOME/.local/bin"
export PATH="$PATH:$LOCAL_BIN"
```

`$ pip install joypyviewer`

`$ joypyviewer`

## Alternative installation in an isolated virtual environment

`$ mkdir joypyviewer` create a new directory

`$ cd joypyviewer` go to that directory

`$ python -m venv virt` generate a new virtual environment with the venv module

`$ . virt/bin/activate` activate it

`$ pip install joypyviewer` install joypyviewer and its dependencies using pip

`$ joypyviewer` execute joypyviewer

## Current features

- Automatically detects devices upon connection.

- Choose between 5 types of joysticks layout (NES, SNES, Master System, Genesis 3-button and Genesis 6-button).

- Green chroma background for OBS usage and ability to change colors for background and pressed highlight.

- Simple abstract joystick layout created using Tkinter coordinates.

- Ability to configure any joystick via a simple TOML file automatically created at home directory `~/.joypyviewer.conf`.
calculaHashDadosAbertos 0.0.5
Retorna dados de hash dos ultimos n dias da biblioteca de dados abertos do governo
License: MIT License
Keywords: Dados Abertos

# calculaHashDadosAbertos
The library can calculate hash files from dados abertos website in MD5 format.
So far it works with chamber of deputies data.
Example of PyPI package.
## Getting Started
#### Dependencies
You need Python 3.7 or later to use **calculaHashDadosAbertos**. You can find it at [python.org](https://www.python.org/).

```
Maybe you should need to import some of those libraries
import requests
import pandas as pd
from pandas.io.json import json_normalize
from datetime import date
import json
import io
import hashlib, os, sys
import shutil
```
#### Installation
Clone this repo to your local machine using:
```
git clone https://github.com/masuta16/calculaHash.git
```
## Features
This function example returns a csv file with HashMD5 from dados abertos website using API v2
Con3Prop function returns values with 3 input propositions on government and the fourth input is the number of days until today
and HashMD5Camara method returns the csv file
```
from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con3Prop('PLP','PEC','PL', 3).HashMD5Camara
```
This function example returns a csv file with HashMD5 from dados abertos website using API v2 too
Con2Prop function returns values with 2 input propositions on government the third input is the number of days until today
```
from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con2Prop('PLP','PEC', 3).HashMD5Camara
```
This function example returns a csv file with HashMD5 from dados abertos website using API v2 too
Con1Prop function returns values with only 1 input propositions on government the second input is the number of days until today
```
from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con2Prop('PLP', 3).HashMD5Camara
```
diferenca1Prop function returns a string with the url with data consulting on dados abertos website with one input data
diferenca2Prop function returns -------------------------------------------------------------------with two input data
diferenca3Prop function returns ----- with three input data

```
from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con1Prop('PLP', 3).diferenca1Prop
```