semvec/pypi-packages huggingface dataset:
wcxf 1.6.2
Python API and command line interface for the Wilson Coefficient exchange format
License: MIT

[![Build Status](https://travis-ci.org/wcxf/wcxf-python.svg?branch=master)](https://travis-ci.org/wcxf/wcxf-python) [![Coverage Status](https://coveralls.io/repos/github/wcxf/wcxf-python/badge.svg?branch=master)](https://coveralls.io/github/wcxf/wcxf-python?branch=master)

# WCxf Python API and command line interface

This Python package provides a Python API and command line interface to
perform the following operations on WCxf files (or dictionaries):

- *validation* against EFT and basis files,
- *conversion* between JSON and YAML,
- *translation* between different bases, and
- *matching* between different EFTs.

## Installation

```bash
pip3 install wcxf
```

## Command line interface

The CLI provides the following commands:

### convert

```
usage: wcxf convert [-h] [--output [OUTPUT]] FORMAT [FILE]

Command line script to convert WCxf files between YAML and JSON.

positional arguments:
  FORMAT             Output format (should be yaml or json)
  FILE               Input file. If "-", read from standard input

optional arguments:
  -h, --help         show this help message and exit
  --output [OUTPUT]  Output file. If absent, print to standard output
  ```

### translate

```
usage: wcxf translate [-h] [--output [OUTPUT]] [--format FORMAT] BASIS [FILE]

Command line script for basis translation of WCxf files.

positional arguments:
  BASIS              Output basis
  FILE               Input file. If "-", read from standard input

optional arguments:
  -h, --help         show this help message and exit
  --output [OUTPUT]  Output file. If absent, print to standard output
  --format FORMAT    Output format (default: json)
  ```

### match

```
usage: wcxf match [-h] [--output [OUTPUT]] [--format FORMAT] EFT BASIS [FILE]

Command line script for matching of WCxf files.

positional arguments:
  EFT                Output EFT
  BASIS              Output basis
  FILE               Input file. If "-", read from standard input

optional arguments:
  -h, --help         show this help message and exit
  --output [OUTPUT]  Output file. If absent, print to standard output
  --format FORMAT    Output format (default: json)
```

### validate

```
usage: wcxf validate [-h] TYPE [FILE]

Command line script for validation of WCxf files.

positional arguments:
  TYPE        Type of file to validate: should be 'eft', 'basis', or 'wc'
  FILE        Input file. If "-", read from standard input

optional arguments:
  -h, --help  show this help message and exit
```
touhou-ura 0.0.1
Python tool to get or/and download data from touhou-ura threads (futaba)
License: MIT
Keywords: touhou,futaba,4chan

# Touhou-ura

Python tool to get or/and download data from touhou-ura threads (futaba).

## Installation

```bash
pip install touhou-ura
```
Requirements: [requests](https://pypi.org/project/requests/),
[tqdm](https://pypi.org/project/tqdm/), 
[beautifulsoup4](https://pypi.org/project/beautifulsoup4/)


## Usage

```python
from touhou_ura import ThUra

th_ura = ThUra()
```
### Methods

* `threads_all()`  
Get all threads currently shows. [Return: list]  

    Optional params:
  * sort: (1=latest, 2=oldest, 3=comments(desc), 4=comments(asc), 6/8=no idea)
  * x: Rows to return (default: 20)
  * y: Columns to return (default: 10)
  * l: Title length (default: 4)
  * thumbnail_size: Size of thumbnail (0~6, default: 6)  

* `get_thread_images(id)`  
  Get image links(src) from a thread. [Return: list]

  Params:
    * id: Thread ID (You can find it on the url) https://dec.2chan.net/55/res/{THREAD_ID}.htm

* `download_images(id, directory=None, custom=False)`  
  Download images form a thread. By default, images will be saved on your desktop in 'touhou_ura/images' (Creates if does not exist)  

  Params:
    * id: Thread ID
    * directory: Directory you want to save (optional).
    * custom: (optional)  

    Example: 
    ```python
    import os
    from touhou_ura import ThUra

    th_ura = ThUra()
    directory = os.path.expanduser("~/Desktop/some_folder")

    th_ura.download_images(id, directory)
    # Will be saved at ~Desktop/some_folder/touhou_ura/images/{id}

    th_ura.download_images(id, directory, True)
    # Will be saved at ~Desktop/some_folder
    ```
* `download_archive(id, directory=None, custom=False)`
Download archive of a thread (html, css & images). By default, archives will be saved on your desktop in 'touhou_ura/archives' (Creates if does not exist) 

    Params:
    * id: Thread ID
    * directory: Directory you want to save (optional).
    * custom: (optional)  

    Example: 
    ```python
    import os
    from touhou_ura import ThUra

    th_ura = ThUra()
    directory = os.path.expanduser("~/Desktop/some_folder")

    th_ura.download_archive(id, directory)
    # Will be saved at ~Desktop/some_folder/touhou_ura/archives/{id}

    th_ura.download_archive(id, directory, True)
    # Will be saved at ~Desktop/some_folder
    ```

#### More features coming soon

## License
MIT License
pinterest-api 0.0.8
Pinterest API client
License: MIT
Requires Python: >=3.6.0


# Python Pinterest API

![license MIT](https://s3-us-west-1.amazonaws.com/bryand1/images/badges/license-MIT-blue.svg)
![python 3.6 | 3.7](https://s3-us-west-1.amazonaws.com/bryand1/images/badges/python-3.6-3.7.svg)


## Getting Started

```bash
pip install pinterest-api
```


## Usage

```python
import pinterest

# Generate OAuth2 authorization link
link = pinterest.oauth2.authorization_url(app_id, redirect_uri)

# Initialize API by passing OAuth2 token
api = pinterest.Pinterest(token="ApFF9WBrjug_xhJPsETri2jp9pxgFVQfZNayykxFOjJQhWAw")

# Fetch authenticated user's data
api.me()

# Fetch authenticated user's boards
api.boards()

# Create board
api.board().create("Halloween", description="Fun Costumes")

# Fetch board
api.board("695665542379607495").fetch()
api.board("username/halloween").fetch()

# Fetch pins on board
api.board("username/halloween").pins()

# Edit board
api.board("username/halloween").edit(new_name="Costumes", new_description="Halloween Costume Ideas")

# Delete board
api.board("username/halloween").delete()

# Fetch board suggestions
api.suggest_boards(pin=162129655315312286)

# Fetch authenticated user's pins
api.pins()

# Create a pin
api.pin().create(board, note, link, image_url=image_url)

# Fetch a pin
api.pin(162129655315312286).fetch()

# Edit a pin
api.pin(162129655315312286).edit(board, note, link)

# Delete a pin
api.pin(162129655315312286).delete()

# Search boards (Optional cursor)
api.search_boards(query, cursor=None)

# Search pins (Optional cursor)
api.search_pins(query, cursor=None)

# Follow a board
api.follow_board(board)

# Follow a user
api.follow_user(username)

# Return the users who follow the authenticated user
api.followers(cursor=None)

# Return the boards that the authenticated user follows
api.following_boards(cursor=None)

# Return the topics the authenticated user follows
api.following_interests(cursor=None)

# Return the users the authenticated user follows
api.following_users(cursor=None)

# Unfollow board
api.unfollow_board(board)

# Make authenticated user unfollow user
api.unfollow_user(username)

# Fetch another user's info
api.user(username)

# Fetch board sections
api.board("695665542379586148").sections()

# Create board section
api.board("695665542379586148").section("Section Title").create()

# Delete board section
api.board("695665542379586148").section("4989415010584246390").delete()

# Fetch pins in board section
api.board("695665542379586148").section("4989343507360527350").pins()
```


## Responses

The Pinterest API responses are in JSON format.

```python
api.me()  # By default, retry http request up to 3 times
```

```javascript
{
  "data": {
    "first_name": "Bryan",
    "id": "695665611098925391",
    "last_name": "Andrade",
    "url': "https://www.pinterest.com/bandrade1815/"
  },
  "ratelimit": {
      "limit": 10,
      "remaining": 9
  }
}
```


## Resources

[Pinterest Developer API](https://developers.pinterest.com/docs/getting-started/introduction/)  
[Pinterest API Explorer](https://developers.pinterest.com/tools/api-explorer/)