semvec/pypi-packages huggingface dataset:
aio4chan 0.0.0
API wrapper for 4chan.
License: MIT

## Contents

- 4chan API reader.

## Installing

```
python3 -m pip install aio4chan
```

## Usage

```py
import asyncio
import aiohttp
import aio4chan

loop = asyncio.get_event_loop()

session = aiohttp.ClientSession(loop = loop)

client = aio4chan.Client(session = session, loop = loop)

async def execute():

    """
    Traverse 4chan.
    """

    boards = await client.get_boards()

    # short names
    board_ids = (board.board for board in boards)

    for board_id in board_ids:

        pages = await client.get_threads(board_id)

        # list of pages, each containing threads
        thread_ids = (thread.no for page in pages for thread in page.threads)

        for thread_id in thread_ids:

            # need both board_id and thread_id
            thread = await client.get_thread(board_id, thread_id)

            for post in thread:

                try:

                    # might not exist
                    comment = post.com

                except AttributeError:

                    continue

                # print where we got it, and the comment
                print(board_id, '>', thread_id, '>', post.no, '\n', post.com)

try:

    loop.run_until_complete(execute())

except KeyboardInterrupt:

    pass

finally:

    loop.run_until_complete(session.close())

    loop.close()
```
django-smb 0.1.0
A simple Django app to manage SMB locations (Windows Share directories).
License: MIT
Keywords: django smb windows share remote

# django-smb



A django app to manage data sourcing from remote [SMB][1] locations.

This app creates models for SMB location configuration and file syncing.
The models are complemented with some utility methods to facilitate data import.



Quick start
-----------

1. Add "django_smb" to your INSTALLED_APPS setting like this::

<pre>
    INSTALLED_APPS = [  
        ...  
        'django_smb',  
    ]  
</pre>

2. Include the dicom URLconf in your project urls.py like this::

<pre>
    path('smb/', include('django_smb.urls')),
</pre>

3. Run `python manage.py migrate` to create the dicom models.

4. Start the development server and visit http://127.0.0.1:8000/admin/.

5. Visit http://127.0.0.1:8000/dicom/.




[1]: https://docs.microsoft.com/en-us/windows/desktop/fileio/microsoft-smb-protocol-and-cifs-protocol-overview