semvec/pypi-packages huggingface dataset:
httpself 1.0.0
HTTP server over SSL/TLS with an automatically generated self-signed certificate
License: MIT
Requires Python: >=3.6,<4.0
Keywords: https,server,certificate,self-signed

# httpself

HTTP server over SSL/TLS with an automatically generated self-signed certificate.

## Usage

Serve static files from the current working directory:

```shell
$ https [-p/--port <NNNN>] [--public]
```

### Example #1

By default, the server runs on port number `443`, which requires superuser privileges. Note that the server will only be accessible from the `localhost`:

```shell
$ https
Running server at https://localhost:443
```

### Example #2

To specify an alternative port number:

```shell
$ https --port 8443
Running server at https://localhost:8443
```

### Example #3

To make the server accessible from other devices:

```shell
$ https --public
Running server at https://0.0.0.0:443
```

### Example #4

To run the server publicly on a custom port:

```shell
$ https --public -p 8443
Running server at https://0.0.0.0:8443
```

## Installation

```shell
$ pip install httpself
```
tlmulticlient 0.0.5
Multi Sessions addon for Telethon
License: MIT
Keywords: telethon telegram telegram-client

# Multi Sessions addon for Telethon

## Installing:

```bash
pip3 install tlmulticlient
```

## How to use:

```python

# importing multiclient library and other required imports
from tlmulticlient import MultiClient
import asyncio
from telethon import events
# create the multiclient

client = MultiClient(api_id=12345, api_hash='my_api_hash', sessions=['list', 'of', 'str_sessions'])

# listenting to new messages

@client.on(events.NewMessage)
def listener(event):
    # Now we need to use `event.client.etc` instead of client.etc to be able to run a function on all the available clients!
    await event.client.send_message(event.chat_id, "Hello World!")

    # To find out from which session an event was triggered we use:
    id = event.client.session_id # session id is the name of the session attached to the client which received the event.
    if id == 'str_sessions':
        print('This event was triggered from the session named str_sessions')
    else:
        print('This event was triggered from the session named {0}'.format(id))

# iterate though all the clients

for c in client:
    print(c.session_id)

# run all the clients

loop = asyncio.get_event_loop()
client.run_all_clients(loop=loop)
```