semvec/pypi-packages huggingface dataset:
tuspy-fast-api 1.0.4
TUS py protocol implementation in FastAPI
License: MIT

# FastAPI Tus

FastAPI Extension implementing the Tus.io server protocol

### Prerequisites `FastAPI`

## Installation

Installation from PyPi repository (recommended for latest stable release)

```
pip install tuspy-fast-api
```

## Usage

### main.py

```python
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from starlette.staticfiles import StaticFiles

from tus import router

app = FastAPI()
app.add_middleware(
    CORSMiddleware,
    allow_origins=['*'],
    allow_methods=["*"],
    allow_headers=["*"],
)
app.mount("/static", StaticFiles(directory="static"), name="static")
app.include_router(router, prefix="/files")
```

This package has the ability to upload, download, delete (including a scheduler) files.

```python setup.py sdist bdist_wheel```

Any contribution is welcomed.

<a href="https://www.buymeacoffee.com/edihasaj" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-red.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
a-selenium-get-with-timeout 0.11
No more getting stuck with not reacting URLs
License: MIT
Keywords: Selenium,automation,url,timeout,get


# No more getting stuck with not reacting URLs


```python
# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10

$pip install a-selenium-get-with-timeout


from auto_download_undetected_chromedriver import download_undetected_chromedriver
import undetected_chromedriver as uc

from a_selenium_get_with_timeout import get_site_with_timeout

if __name__ == "__main__":
    folderchromedriver = "f:\\seleniumdriver2"
    path = download_undetected_chromedriver(folder_path_for_exe=folderchromedriver, undetected=True)
    driver = uc.Chrome(driver_executable_path=path)
    url=r"https://www.whitehouse.gov/"
    get_site_with_timeout(driver, url, timeout=5, ready_state=True)

```
twcollect 0.1.0
Simple CLI to collect data from the Twitter stream API
License: MIT
Requires Python: >=3.8

<!-- These are examples of badges you might want to add to your README:
     please update the URLs accordingly

[![Built Status](https://api.cirrus-ci.com/github/<USER>/twcollect.svg?branch=main)](https://cirrus-ci.com/github/<USER>/twcollect)
[![ReadTheDocs](https://readthedocs.org/projects/twcollect/badge/?version=latest)](https://twcollect.readthedocs.io/en/stable/)
[![Coveralls](https://img.shields.io/coveralls/github/<USER>/twcollect/main.svg)](https://coveralls.io/r/<USER>/twcollect)
[![PyPI-Server](https://img.shields.io/pypi/v/twcollect.svg)](https://pypi.org/project/twcollect/)
[![Conda-Forge](https://img.shields.io/conda/vn/conda-forge/twcollect.svg)](https://anaconda.org/conda-forge/twcollect)
[![Monthly Downloads](https://pepy.tech/badge/twcollect/month)](https://pepy.tech/project/twcollect)
[![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter)](https://twitter.com/twcollect)
-->

[![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)

# `twcollect`

> Simple CLI to collect data from the Twitter stream API

## Installation

```
pip install twcollect
```

## Usage

Create a credentials file with the following format:

```yml
twitter_token: "<TWITTER_BEARER_TOKEN>"
```

See the CLI help for details on how to use:

```shell
python -m twcollect --help
```

<!-- pyscaffold-notes -->

## Note

This project has been set up using PyScaffold 4.3.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.
unison-gitignore 1.0.5
A unison wrapper to integrate with .gitignore
License: MIT
Keywords: unison,gitignore

## Unison Gitignore
[![PyPI version](https://badge.fury.io/py/unison-gitignore.svg)](https://badge.fury.io/py/unison-gitignore)

A gitignore-aware wrapper around [Unison](https://github.com/bcpierce00/unison)

`unison-gitignore` will walk the local root and any supplied paths finding gitignore files and then call
`unison` with the appropriate unison ignore patterns

## Usage
First install it:
```bash
pip install unison-gitignore
```

Then use:
```bash
unison-gitignore /home/john_doe/local_root ssh://remote_root/ -path data
```
It accepts the exact same arguments as `unison`

## Caveats
- Will not add patterns when using two local roots:

    Unison does the match without the root attached, so a .gitignore file
    in either root would apply to both local roots
- Will not add patterns when profile usage method is used
- Does not handle `!pattern` in the same way as git does:

    ```
    b/
    !b/c/test.py
    ```
    `test.py` will not be ignored in git, but will be ignored by `unison`

    The [Unison reference](https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#reference)
    says this:
    > Unison starts detecting updates from the root of the replicas—i.e., from the empty path. If the empty path matches an ignore pattern and does not match an ignorenot pattern, then the whole replica will be ignored. (For this reason, it is not a good idea to include Name * as an ignore pattern. If you want to ignore everything except a certain set of files, use Name ?*.)

    > If the root is a directory, Unison continues looking for updates in all the immediate children of the root. Again, if the name of some child matches an ignore pattern and does not match an ignorenot pattern, then this whole path including everything below it will be ignored.

    > If any of the non-ignored children are directories, then the process continues recursively.

    So any negated files or directories that are not direct children of an ignored directory will be ignored improperly.