semvec/pypi-packages huggingface dataset:
pytwot 1.5.1
A Synchronous python API wrapper for twitter's api
License: MIT
Requires Python: >=3.7.0
Keywords: twitter,tweet.py twitter.py

<h2 align="center">pytwot</h2>
<p>This project is a fork of the now archived <a href="https://github.com/PyTweet/PyTweet">PyTweet</a></p>
<p><b>VERY IMPORTANT</b>: This project is approved by the PyTweet devs themselves.</p>
<p><b>Another note:</b> the support server given is support server for the original PyTweet as this is approved by the devs they requested the support server stay the same</p>

<div>
<img src="https://img.shields.io/pypi/v/pytwot?logo=pypi&style=plastic">  

<img src="https://img.shields.io/badge/code%20style-black-000000.svg">  


<img src="https://img.shields.io/github/commit-activity/m/sengolda/pytwot?color=turquoise&logo=github&logoColor=black">


<img src="https://img.shields.io/github/issues-pr/sengolda/pytwot?color=yellow&label=Pull%20Requests&logo=github&logoColor=black">


<img src="https://img.shields.io/discord/858312394236624957?color=blue&label=pytwot&logo=discord">


<img src='https://readthedocs.org/projects/pytwot/badge/?version=latest' alt='Documentation Status' />



</div>
<br>
<br>
<p align="center">pytwot is a synchronous Python API wrapper for the Twitter API. It is filled with rich features and is very easy to use.</p>

## Installation

### Windows

```bash
py -m pip install pytwot
```

### Linux/MacOS

```bash
python3 -m pip install pytwot
```

## Usage

Before using pytwot you have to setup an application [here](https://apps.twitter.com). For a more comfortable experience, you can create an application inside a project. Most endpoints require the client to have `read`, `write` and `direct_messages` app permissions and elevated access type. For more accessibility you can create a dev environment to support events and other premium endpoints. If you have any questions, please open an issue or ask in the official [pytwot Discord](https://discord.gg/nxZCE9EbVr).

```py
import pytwot

client = pytwot.Client(
    "Your Bearer Token Here!!!", 
    consumer_key="Your consumer key here", 
    consumer_secret="Your consumer secret here", 
    access_token="Your access token here", 
    access_token_secret="Your access token secret here",
) #Before using pytwot, make sure to create an application in https://apps.twitter.com.

client.tweet("Hello world, Hello twitter!") #This requires read & write app permissions also elevated access type.
```

You can check in the `examples` directory for more example code.

# Links

- [Documentation](https://pytwot.readthedocs.io/en/latest/)

- [Support Server](https://discord.gg/XHBhg6A4jJ)

- [GitHub](https://github.com/sengolda/pytwot)

- [PyPi](https://pypi.org/project/pytwot)

# Contribute

You can Contribute or open an issue regarding pytwot in our [GitHub repository](https://github.com/sengolda/pytwot)!

# Licence & Copyright

All files of this repo are protected and licensed with the [MIT License](https://opensource.org/licenses/MIT), [LICENSE File](LICENSE)
lexipy 0.1.0
A basic lexer for tokenizing a string of text
License: MIT
Requires Python: >=3.10,<4.0

# LexiPy

LexiPy is a Python package that provides a simple lexer implementation. It allows you to tokenize a string by breaking it down into individual tokens. LexiPy also supports the usage of special terms, which can be treated as one token during tokenization, this can be usefull in domain specific cases like programming languages.

## Installation

You can install LexiPy using pip:

```shell
pip install lexipy
```

## Usage

### Lexer Class (iterator)

The `Lexer` class returns an iterator over the tokens

```python
from lexipy import Lexer

content = "Hello, World!"
lexer = Lexer(content, special_terms=None) # Iterator
tokens = list(lexer) # list of tokens list[str]

tokens
>>> ['hello', ',', 'world', '!']
```

- `content` (str): The string to be tokenized.
- `special_terms` (set[str] | None, optional): A set of special terms to be treated as one token. Default is `None`.

Returns an iterator over the tokens

### lexify Function

The `lexify` function provides a more convenient way to tokenize a string.

```python
from lexipy import lexify

content = "Hello, World!"
tokens = lexify(content, special_terms=None)

tokens
>>> ['hello', ',', 'world', '!']
```

- `content` (str): The string to be tokenized.
- `special_terms` (set[str] | None, optional): A set of special terms to be treated as one token. Default is `None`.

Returns a list of tokens.

### Special terms

You can specify a set of special terms that should be treated as one token during the tokenization process. This can be useful when tokenizing programming languages or other cases where certain terms should not be split.

```python
from lexipy import Lexer

content = "Hello, World!"
special_terms = {"world!"}
lexer = Lexer(content, special_terms=special_terms)
tokens = list(lexer)

tokens
>>> ['hello', ',', 'world!']
```

Note: The special terms are case insensitive

### Planed features

- Adding an optional word stemmer (default: nltk), also support for custom stemmers through an interface

## Contributing

Contributions to LexiPy are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the [GitHub repository](https://github.com/t4skmanag3r/lexipy).

## License

LexiPy is licensed under the [MIT License](https://opensource.org/licenses/mit).

## References

- [Github Repository](https://github.com/t4skmanag3r/lexipy)
- [PyPI package](https://pypi.org/project/lexipy/)
hatch-showcase 0.5.0
A project showcasing features and plugins for Hatch
License: MIT
Requires Python: >=3.7
Keywords: hatch

# hatch-showcase

| | |
| --- | --- |
| CI/CD | [![CI - Test](https://github.com/ofek/hatch-showcase/actions/workflows/test.yml/badge.svg)](https://github.com/ofek/hatch-showcase/actions/workflows/test.yml) [![CD - Build](https://github.com/ofek/hatch-showcase/actions/workflows/build.yml/badge.svg)](https://github.com/ofek/hatch-showcase/actions/workflows/build.yml) |
| Package | [![PyPI - Version](https://img.shields.io/pypi/v/hatch-showcase.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/hatch-showcase/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatch-showcase.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/hatch-showcase/) |
| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) [![code style - black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/ambv/black) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/ofek) |

-----

This project is meant to showcase various features and plugins for [Hatch](https://github.com/pypa/hatch) as well as providing a place to test experimental functionality.

**Table of Contents**

- [Installation](#installation)
- [Version source](#version-source)
- [Environments](#environments)
- [Build](#build)
- [License](#license)

## Installation

```console
pip install hatch-showcase
```

## Version source

- The [hatch-vcs](https://github.com/ofek/hatch-vcs) version source plugin determines the project version using Git tags

## Environments

- Defined neatly in a standalone [`hatch.toml`](https://hatch.pypa.io/latest/intro/#configuration)
- The `test` matrix uses the [hatch-containers](https://github.com/ofek/hatch-containers) plugin to run each environment inside Docker containers; usage can be seen in the [test](.github/workflows/test.yml) GitHub workflow

## Build

- All build targets use the [hatch-vcs](https://github.com/ofek/hatch-vcs) build hook plugin to ship a `_version.py` file so the version can be used at runtime
- Wheels use the [hatch-mypyc](https://github.com/ofek/hatch-mypyc) build hook plugin to first compile all code with [Mypyc](https://github.com/mypyc/mypyc)
- The [build](.github/workflows/build.yml) GitHub workflow shows how to:
  - use [cibuildwheel](https://github.com/pypa/cibuildwheel) to distribute binary wheels for every platform
  - use the [app](https://hatch.pypa.io/latest/plugins/builder/app/) build target to build standalone distributions for every platform

## License

`hatch-showcase` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.