semvec/pypi-packages huggingface dataset:
py3aiopubsub 1.0.0
aio pubsub
License: MIT
Requires Python: >=3.8
Keywords: aio redis pubsub mqtt publish subscribe

aio_pubsub
########


1. 安装
==========

.. code-block:: shell

   pip install aiopubsub
   pip install aiopubsub[redis]
   pip install aiopubsub[redis2]

2. 示例
==========

- 2.1 发布

.. code-block:: python

    from aiopubsub import Pubsub

    async def main():
        pub = Pubsub(Pubsub.REDIS, port=16379)
        count = await pub.publish("foo1", {"test": 1})
        print(count)
        async with pub.get_pub() as _pub:
            count = await pub.publish("foo1", {"test": 2}, _conn=_pub.conn)
            print(count)
            count = await pub.publish("foo1", {"test": 3}, _conn=_pub.conn)
            print(count)
        await pub.close()

- 2.2 订阅

.. code-block:: python

    from aiopubsub import Pubsub

    async def main():
        sub = Pubsub(Pubsub.REDIS, port=16379)

        async with sub.get_sub() as _sub:
            _conn = await sub.subscribe("foo", _conn=_sub.conn)
            async for k in sub.listen(_conn):
                print(k)
        await sub.close()

- 2.3 模糊订阅

.. code-block:: python

    from aiopubsub import Pubsub

    async def main():
        sub = Pubsub(Pubsub.REDIS, port=16379)

        async with sub.get_sub() as _sub:
            _conn = await sub.psubscribe("foo*", _conn=_sub.conn)
            async for k in sub.listen(_conn=_conn):
                print(k)
        await sub.close()
pubsub-aio 1.0.0
aio pubsub
License: MIT
Requires Python: >=3.8
Keywords: aio redis pubsub mqtt publish subscribe

aio_pubsub
########


1. 安装
==========

.. code-block:: shell

   pip install aiopubsub
   pip install aiopubsub[redis]
   pip install aiopubsub[redis2]

2. 示例
==========

- 2.1 发布

.. code-block:: python

    from aiopubsub import Pubsub

    async def main():
        pub = Pubsub(Pubsub.REDIS, port=16379)
        count = await pub.publish("foo1", {"test": 1})
        print(count)
        async with pub.get_pub() as _pub:
            count = await pub.publish("foo1", {"test": 2}, _conn=_pub.conn)
            print(count)
            count = await pub.publish("foo1", {"test": 3}, _conn=_pub.conn)
            print(count)
        await pub.close()

- 2.2 订阅

.. code-block:: python

    from aiopubsub import Pubsub

    async def main():
        sub = Pubsub(Pubsub.REDIS, port=16379)

        async with sub.get_sub() as _sub:
            _conn = await sub.subscribe("foo", _conn=_sub.conn)
            async for k in sub.listen(_conn):
                print(k)
        await sub.close()

- 2.3 模糊订阅

.. code-block:: python

    from aiopubsub import Pubsub

    async def main():
        sub = Pubsub(Pubsub.REDIS, port=16379)

        async with sub.get_sub() as _sub:
            _conn = await sub.psubscribe("foo*", _conn=_sub.conn)
            async for k in sub.listen(_conn=_conn):
                print(k)
        await sub.close()
make-runner 0.2.2
Enhanced Makefile-based task runner
License: MIT
Requires Python: >=3.7,<4.0

.. image:: https://user-images.githubusercontent.com/12455831/122683398-cd0bbf00-d239-11eb-95cc-39a1bf911224.png
   :alt: banner

Installation
############
You can install via pip.

::

   pip install make-runner

Usage
#####
All you have to do is add a comment starting with :code:`##` to your Makefile.
The comment should be added to the end of line of PHONY targets and the above line of constant settings.

.. code-block:: makefile

   ## source filename
   SRC_FILE := source.txt
   ## target filename
   TGT_FILE := target.txt

   $(TGT_FILE): $(SRC_FILE)
        cp $(SRC_FILE) $(TGT_FILE)

   .PHONY: copy
   copy: $(TGT_FILE) ## copy a file from SRC_FILE to TGT_FILE


Then, type :code:`mrun` in the same directory as your Makefile.

.. image:: https://raw.githubusercontent.com/de9uch1/make-runner/main/example/mrun.png
   :alt: screenshot
nfl-scraper 1.0.4
Creating a scraper for multiple fantasy football sites
License: MIT
Requires Python: >=3.10,<4.0
Keywords: nfl,nfl_scraper,fantasy,football,myfantasy

# fantasy-scraper
Trying to scrape all data from our fantasy league with NFL.com. Since we are moving to Sleeper. It might end up include myfantasyleague as well

## Simple Usage

First off you will need to ensure you have chromedriver installed in your path [StackOverflow](https://stackoverflow.com/a/40556092/1248536).
You should be able to set your path with `PATH="$PATH:/usr/local/bin/chromedriver"` or where ever your chromedriver is. If you
can `which chromedriver` then you are good.


To use the package, you should be able to pull your league id from NFL.com, email, you know your password, and whatever you want to use for a name of the
league (this does not need to be the actually name of the league)

```shell
_email="youremail@email.com"
_pass="TheP@SSWordYouUse"
_leagueid=123456
_name="Some random name"
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps nfl_scraper

# Should work
nfl_scraper -e $_email -p $_pass -i $_leagueid -n $_name

# Could be
python3 run nfl_scraper -e $_email -p $_pass -i $_leagueid -n $_name


```
## Developer Notes

If you are familiar with Python. You can work with the repo directly. Below are some of the steps I used to get the project running, building, etc...


### Pipenv and Poetry

Setup

```bash
curl -sSL https://instcurl -sSL https://install.python-poetry.org | python3 -
pipenv install --python=/usr/loca/bin/python3.10
pipenv shell
poetry completions bash >> ~/.bash_completion
#export PIP_PYTHON_PATH="$VIRTUAL_ENV/bin/python3"
poetry new nfl_scraper
poetry new nfl_scraper
#pipenv install --index=pip
#pipenv install --index=distutils
poetry add requests
poetry add html5lib
poetry add bs4


#pip uninstall -y setuptools
#exit
#deactivate 
```

### Running as locally Non Dev

```shell
poetry install --without dev --sync
poetry run python -V
# Help
poetry run python main.py -h 
# Sub out the params
poetry run python main.py -e <email> -p <password> -i <id> -n <name>
# Test need to beef these up
poetry run pytest
```

### Running as Dev

```shell
poetry check
poetry build
#poetry update #gets latest package version

```

### Running in CICD

```shell
poetry check
# output version
poetry version -s

poetry version major|minor|patch --dry-run
```