semvec/pypi-packages huggingface dataset:
count-in-list 0.0.4
A sample test package
License: MIT
Requires Python: >=3.8

# count_in_list

Install the package
```
pip install count_in_list
```

From Python or IPython
```
from count_in_list import count_in_list
l = ["gfg", "dsa", "gfg"]
count = count_in_list(l, "gfg")
print(count)
```

---

Packages required to generate packages.
```
pip install setuptools wheel
```

Generate build, dist, and test_package.egg-info.
```
python setup.py sdist bdist_wheel
```

Package required to deploy.
```
pip install twine
```

Upload the package
```
twine upload --repository pypi dist/*
```
root-relative 0.28
Module that allow to launch python module without requirements to start from working dir
License: MIT

Tool for running CWD-agnostic Python scripts. 

With this module you can run your script from **any project nested folder without breaking your imports** (including relative imports).

```shell
pip install root-relative
python -m root_relative package1.module1
```

This line will try to find the module automatically and detect the project root folder based on the module name provided.
After that the CWD is automatically changed and the module is run as-a-module from the project root.

Also, there is a fix for relative import uncertainty.

If there a/b/c/d and a/b are both added to the sys.path. As a result, if you have a module inside a/b/c/d - you will have two options to import this module
```python
import a.b.c.d.module
# or 
import c.d.module
```
The both options will import the module but relative imports will work differently for them.

In the first case you can easily use 
```python
from ... import another_module
```
but for the second case you'll have 
```python
ImportError: attempted relative import beyond top-level package
```