semvec/pypi-packages huggingface dataset:
python-metallum 1.1.0
Python API for www.metal-archives.com
License: MIT
Requires Python: >=3

# python-metallum

A basic python API for the amazing www.metal-archives.com

## Install

`pip install python-metallum`

## Usage

Artist search

```python
import metallum


# Search bands matching term
bands = metallum.band_search('metallica')
# -> [<SearchResult: Metallica | Thrash Metal (early), Hard Rock/Heavy/Thrash Metal (later) | United States>]

bands[0].name
# -> 'Metallica'

# Fetch band page
band = bands[0].get()

# Get all albums
band.albums
# -> [<Album: No Life 'til Leather (Demo)>, <Album: Kill 'Em All (Full-length)>, ...]

# Get only full-length albums
full_length = band.albums.search(type=metallum.AlbumTypes.FULL_LENGTH)
# -> [<Album: Kill 'Em All (Full-length)>, <Album: Ride the Lightning (Full-length)>, <Album: Master of Puppets (Full-length)>, <Album: ...and Justice for All (Full-length)>, <Album: Metallica (Full-length)>, <Album: Load (Full-length)>, <Album: ReLoad (Full-length)>, <Album: Garage Inc. (Full-length)>, <Album: St. Anger (Full-length)>, <Album: Death Magnetic (Full-length)>, <Album: Hardwired... to Self-Destruct (Full-length)>]

album = full_length[2]
album.title
# -> 'Master of Puppets'

album.date
# -> datetime.datetime(1986, 3, 3, 0, 0)

# Get all tracks
album.tracks
# -> [<Track: Battery (313)>, <Track: Master of Puppets (516)>, <Track: The Thing That Should Not Be (397)>, <Track: Welcome Home (Sanitarium) (388)>, <Track: Disposable Heroes (497)>, <Track: Leper Messiah (341)>, <Track: Orion (508)>, <Track: Damage, Inc. (330)>]
```

Album search

```python
import metallum

# Search albums matching term
metallum.album_search('seventh')
# -> []

# Search albums containing term
metallum.album_search('seventh', strict=False)
# -> [<SearchResult: Beherit | Seventh Blasphemy | Demo>, <SearchResult: Black Sabbath | Seventh Star | Full-length>, ...]

# Search albums by band
metallum.album_search('seventh', band='iron maiden', strict=False)
# -> [<SearchResult: Iron Maiden | Seventh Son of a Seventh Son | Full-length>]

```

Refer to source and doctests for detailed usage
robocup-spl-rules-cli 1.0.0
RoboCup SPL Rules CLI
License: MIT

# RoboCup SPL Rules CLI

Open RoboCup SPL Rules in your web browser!
You can open rules of a particular year or default to the most recent rules.
Rules are taken from [here](https://spl.robocup.org/downloads/).

The regex should work until we hit a five digit year.
If humanity is still around by the year 10000 someone please fit it.


### Installation

```
pip install robocup-spl-rules-cli
```


### Usage

```
usage: rules [-h] [year]

open RoboCup SPL rules in your browser

positional arguments:
  year        the year of which to fetch the rules; defaults to most recent if ommited

optional arguments:
  -h, --help  show this help message and exit
```
fitbit-client 0.0.2
Call Fitbit's web API from terminal
License: MIT
Requires Python: >=3.6.0

README
======

[![PyPI version](https://badge.fury.io/py/fitbit-client.svg)](https://badge.fury.io/py/fitbit-client)
[![Build Status](https://travis-ci.com/robotpt/fitbit-client.svg?branch=master)](https://travis-ci.com/robotpt/fitbit-client)
[![Coverage Status](https://coveralls.io/repos/github/robotpt/fitbit-client/badge.svg?branch=master)](https://coveralls.io/github/robotpt/fitbit-client?branch=master)

A Fitbit client that works from terminal to read steps data without launching a web browser or requiring that the user is signed in.

Features
--------
* No web sign-in is prompted when running the app
* Access doesn't expire
* Uses a one-time code to get the OAuth2 access token
* Saves a file with the credentials that it uses by default when run
* Exposes a function for generic requests to Fitbit's API
* Returns intraday steps data for a specified date in a Pandas Dataframe and the datetime of the last sync

Setup
-----

Follow the instructions [here](https://www.forkingbytes.com/blog/using-the-fitbit-api-from-a-command-line-application-in-go/) to obtain the following:
* Client ID
* Code
* Authorization

> Note that for access to intraday data, create a personal app.

Then, either
* Run this program and enter information when prompted
* Or pass this information as function arguments

You can then start making Fitbit API calls.  The program supports intraday steps and the last sync time with convenience functions, and there is also a function `get_url` for making generic requests to Fitbit's API.