semvec/pypi-packages huggingface dataset:
bump-testclient 0.3.0
Replace Starlette's TestClient from `requests` to `httpx`! 🎉
License: MIT
Requires Python: >=3.7

<h1 align="center">
    <strong>bump-testclient</strong>
</h1>
<p align="center">
    <a href="https://pypi.org/project/bump-testclient" target="_blank">
        <img src="https://img.shields.io/pypi/v/bump-testclient" alt="Package version">
    </a>
    <img src="https://img.shields.io/pypi/pyversions/bump-testclient">
    <img src="https://img.shields.io/github/license/Kludex/bump-testclient">
</p>

Starlette 0.21.0 changed the `TestClient` implementation: it replaced the `requests` library with `httpx`.
As those libraries have different APIs, this change break tests for Starlette's users.

This [codemod](https://libcst.readthedocs.io/en/stable/codemods_tutorial.html) makes the transition to Starlette 0.21.0 easier.
It makes the changes needed to make the tests work again.

## Why?

Make your life easier. Suggested by [Sebastián Ramírez](https://twitter.com/tiangolo) as a joke, but well... I did it.

## Transformations

1. Replace `client.<method>(...)` by `client.request("<method>", ...)`

The methods ("delete", "get", "head", "options") doesn't accept the `content`, `data`, `json` and `files` parameters.

Conditions for this transformation:
- Using `client.<method>` and `<method> in ("delete", "get", "head", "options").
- Using `content`, `data`, `json` or `files` parameters.

2. Replace `client.<method>(..., allow_redirects=...)` by `client.<method>(..., follow_redirects=...)`

HTTPX uses `follow_redirects` instead of `allow_redirects`.

3. Replace `client.<method>(..., data=...)` by `client.<method>(..., content=...)`

If the argument passed to `data` is either text or bytes, `content` should be used instead.

Conditions for this to happen:
- `data` parameter receives a bytes/text argument.


## Installation

```bash
pip install bump-testclient
```

## Usage

Run the following on the repository you want to format:

```bash
python -m bump_testclient <files>
```

You can also use the pre-commit. Add the following to your `.pre-commit-config.yaml` file:

```yaml
  - repo: https://github.com/Kludex/bump-testclient
    rev: 0.3.0
    hooks:
      - id: bump_testclient
```

## License

This project is licensed under the terms of the MIT license.
minPath 0.1.3
imaginary path aka MiniPath
License: MIT
Keywords: inputs,inputing,inputed,input,inputtools,tools,toolkit,tooling,useful_input,useful

# minPath
a file system simulation

# installation

Run the following to install:
```cmd
pip install minPath
```
### or
```cmd
python -m pip install minPath
```
if that didn't work, try replacing `pip` with `pip3`.

need help? or have bugs to report, let me know in the [lab](https://discord.gg/vzEZnC7CM8)

# getting started
```python
from minPath import *

my_files = [File("hay.py","print('Hello, World!')"),File("Hi.py","print('Hi')"),File("text.txt","here a text file"),File("BRUH",None),Folder("test",[File("testing.txt","A test file for my MiniPath testing"),File("huh.txt","anther testing file"),Folder("Folder 2"),Folder("empty",[File("empty file","nothing here :("),Folder("o")])]),File("random")]

pa = MiniPath("C:",my_files,path_sep="\\")
print(str(pa))
print(dir(pa)) # dir attrs
#help(File); help(Folder)


"""
# dump
with open("minPath.pickle","wb") as file:
	pickle.dump(pa)
"""

```


File class is file-like object
Folder is Folder_Array


if you needed **help** join the [lab](https://discord.gg/vzEZnC7CM8)


## pickling, unpickling
how to dump and load minpath object
```python
import pickle
from minPath import *

# load
with open("minPath.pickle","rb") as file:
	pa = pickle.load(file)

# do stuff
...

# dump
with open("minPath.pickle","wb") as file:
	pickle.dump(pa)

```
> Warning do not edit the file this may break the file



Change Log
==========


0.1.0 (2022/09/19)
-------------------
- First Release

0.1.1 (2022/09/21)
-------------------
- First Release
- nothing new just rewrite the description
- deleted useless modules(those modules were tests and a mess code)
- fix installing unwanted packages `install_requires`


0.1.2 (2022/09/21)
-------------------
- fix installing unwanted packages `install_requires`

0.1.3 (2022/11/14)
-------------------
- fix folder(is not a folder) bug
- made faster and better MiniPath.walk function
- added a new functions removedirs, rmdir and remove
- rename isexists to exists
- added new atter __version__,__author__