semvec/pypi-packages huggingface dataset:
meetup-client 0.3.1
A Python client for the Meetup API.
License: MIT
Requires Python: >=3.7,<4.0

# meetup-client

[![Build Status](https://travis-ci.org/janjagusch/meetup-client.svg?branch=master)](https://travis-ci.org/janjagusch/meetup-client) [![codecov](https://codecov.io/gh/janjagusch/meetup-client/branch/master/graph/badge.svg)](https://codecov.io/gh/janjagusch/meetup-client)

A Python client for the [Meetup API](https://www.meetup.com/meetup_api/) that supports [OAuth 2](https://www.meetup.com/meetup_api/auth/#oauth2) authentification.

## Installation

```
pip install meetup-client
```

## Getting Started

**Note**: meetup-client only supports OAuth 2 authentification with server flow without user credentials. To create an access token, follow the instructions [here](https://www.meetup.com/meetup_api/auth/#oauth2). This project is designed to be compatible with [meetup-token-manager](https://github.com/janjagusch/meetup-token-manager), which can help you creating and storing API tokens.

Next, you can create a `Client` instance as follows:

```python
from meetup.client import Client

meetup_client = Client(
    access_token=<YOUR ACCESS TOKEN>, # Also accepts a callable, like lambda: token_manager.token().access_token
)
```

## Examples

Please take a look at the [examples](notebooks/examples.py). You can convert this into a Jupyter notebook, using [jupytext](https://github.com/mwouts/jupytext).

## Changelog

Please take a look at the [CHANGELOG.md](CHANGELOG.md) for notable changes to meetup-client.

## License

See the [LICENSE](LICENSE) for details.

## Development

We welcome new contributions to this project!

### Source Code

You can check the latest source code with the command:

```
git clone git@github.com:janjagusch/meetup-client.git
```

### Dependencies

Please take a look at `tool.poetry.dev-dependencies` in `pyproject.toml`.

### Linting

After cloning and installing the dependencies, you can lint the project by executing:

```
make lint
```

### Testing

After cloning and installing the dependencies, you can test the project by executing:

```
make test
```

## Help and Support

### Authors

- Jan-Benedikt Jagusch <jan.jagusch@gmail.com>
yotsuba-python 0.1.3
a
License: MIT
Keywords: nlp python rust

# 🍀 yotsuba

[Documentation](https://yutayamazaki.github.io/yotsuba-docs/)

## Install yotsuba.

- Via pip (under construction)

```shell
pip install yotsuba-python
```

- From source.

```shell
git clone https://github.com/yutayamazaki/yotsuba.git
cd yotsuba/bindings/python
python setup.py install
```

## API documents.

### yotsuba

`yotsuba.pad_sequences(sequences: List[List[int]], maxlen: int, value: int = 1, padding: str = 'post') -> List[List[int]]`

Pad sequences with given value like `keras.preprocessing.sequence.pad_sequences`.

##### Parameters

- `sequences (List[List[int]])` - Sequences to padded.
- `maxlen (int)` - Maximum sequence length to pad.
- `value (int)` - A value used to pad sequences.
- `padding (str)` - 'pre' or 'post', default is 'post'.

##### Returns
- `List[List[int]]` - An list of integers with shape (len(sequences), maxlen).

##### Raises

- ValueError - If `padding` is not 'pre' or 'post'.

##### Examples

```python
from typing import List

import yotsuba

sequences: List[List[int]] = [[0, 2, 1], [0, 1]]
padding: List[List[int]] = yotsuba.pad_sequences(
    sequences=sequences, maxlen=5, value=-1, padding='post'
)
assert padding == [[0, 2, 1, -1, -1], [0, 1, -1, -1, -1]]
```