semvec/pypi-packages huggingface dataset:
lppydsmc-taltos 0.0.4
small DSMC tool written in python
Requires Python: >=3.7

# LPPy-DSMC

## Launch unit test first
**NOT UP TO DATE - won't work**
```shell
python -m unittest discover
```

## Installing the environment
```
conda create --name lpp python=3.9 pandas numpy matplotlib tqdm notebook jupyterlab numexpr pytables seaborn
```

To run the notebooks, you will need [ipympl](https://github.com/matplotlib/ipympl) which allows interacting with `matplotlib` plots inside *jupyter lab*. If you do not want to install it, simply replace `%matplotlib widget` by either `%matplotlib notebook` for *jupyter notebook* or `%matplotlib inline` for *jupyter lab*.

## Running a simulation

You can use the `main.ipynb` notebook to launch easily a first simulation and then you can analyze it using the `analysis.ipynb` notebook.
PyPSocket 1.0.0.5
소켓을 쉽고 간단하게 사용할 수 있는 모듈
Requires Python: >=3

# PyPSocket
**Version 1.0.0.5**

`PyPSocket`은 간편하게 소켓을 사용하기 위해 만들어진 모듈입니다. 
파일과 같은 큰 데이터를 제약 없이 송신 및 수신할 수 있도록 
설계되었습니다.


## Install
```shell
pip install PyPSocket
```


## Example
- ### Server
  ```python
  import PyPSocket
  
  
  def on_message(cid, message):
      print(f"[{cid}]: {message}")
  
  
  address = PyPSocket.AddressInfo("0.0.0.0", 8000)
  option = PyPSocket.Option(PyPSocket.TCPHandler)
  server = PyPSocket.Server(address, option)
  server.event.on_message += on_message
  server.run()
  
  
  while True:
      server.broadcast(data="Hello, World!")
  ```
  

- ### Client
  ```python
  import PyPSocket
  
  
  def on_message(cid, message):
      print(f"[{cid}]: {message}")
  
  
  address = PyPSocket.AddressInfo("0.0.0.0", 8000)
  option = PyPSocket.Option(PyPSocket.TCPHandler)
  client = PyPSocket.Client(address, option)
  client.event.on_message += on_message
  client.run()
  
  
  while True:
      client.send(data="Hello, World!")
  ```


## Documentation
- ### Server
  연결된 `Client`를 관리합니다.
  ```python
  server = Server(address_info, option)
  ```
  - ### `Server.run()`
    `Server`를 실행합니다.
    ```python
    server.run()
    ```
  - ### `Server.close()`
    `Server`를 종료합니다.
    ```python
    server.close()
    ```
  - ### `Server.disconnect(cid)`
    `cid`가 부여된 `Client`의 연결을 종료합니다.
    ```python
    server.disconnect("cid_string")
    ```
  - ### `Server.send(cid, **kwargs)`
    `cid`가 부여된 `Client`에게 `kwargs`를 전송합니다.
    ```python
    server.send("cid_string", data="Hello, World!")
    ```
  - ### `Server.broadcast(**kwargs)`
    연결된 모든 `Client`에게 `kwargs`를 전송합니다.
    ```python
    server.broadcast(data="Hello, World!")
    ```
  

- ### AddressInfo
  `address`와 `port`의 값이 유효한지 확인하고 저장합니다.  
  유효하지 않을 경우 `OutOfRangeAddressInfoException` 예외를 발생시킵니다.
  ```python
  address_info = AddressInfo(address, port)
  ```


- ### Option
  `Server` 또는 `Client`의 옵션입니다.
  ```python
  option = Option(handler_type, *args, **kwargs)
  ```


- ### Event
  객체에서 이벤트가 발생했을 때 호출이 예약된 메소드를 저장하고 호출합니다.  
  보통 커스텀 이벤트 핸들러를 정의할 때 사용합니다.
  ```python
  event = Event(function)
  ```
  이벤트에 메소드를 추가하는 법
  ```python
  def on_event(*args, **kwargs):
      print(args, kwargs)
  event += on_event
  ```


- ### ObjectDisposedException
  종료된 객체에 접근할 때 발생하는 예외입니다.
  ```python
  raise ObjectDisposedException(object)
  ```

  - ### HandleClosedException
    종료된 핸들에 접근할 때 발생하는 예외입니다.  
    `ObjectDisposedException`의 하위 클래스 입니다.
    ```python
    raise HandleClosedException(handle)
    ```
    
  - ### HandleClosedException
    종료된 핸들러에 접근할 때 발생하는 예외입니다.  
    `ObjectDisposedException`의 하위 클래스 입니다.
    ```python
    raise HandlerClosedException(handler)
    ```
    


## Contributors
**Kim Jae-yun**



## Copyright & License
**Copyright 2021. Kim Jae-yun**  
**MIT License**
UsergeAntiSpamApi 0.1.8
Wrapper for [Userge AntiSpam API](https://api.userge.tk)
Requires Python: >=3.6

# <b>UsergeAntiSpamApi</b>

- [<b>Installation</b>](#installation)
- [<b>Documentation</b>](#documentation)
- [<b>Examples</b>](#examples)
  - [<b>Authorisation</b>](#authorisation)
  - [<b>Bans</b>](#bans)
  - [<b>Tokens</b>](#tokens)
  - [<b>Version</b>](#version)
  - [<b>Stats</b>](#stats)
- [<b>Copyright</b>](#copyright)

<br>

# <b>Installation</b>

```shell
pip install UsergeAntiSpamApi
```

<br>

# <b>Documentation</b>

You can read our Documention on https://docs.userge.tk

<br>

# <b>Examples</b>

## <b>Authorisation</b>

```python
from UsergeAntiSpamApi import Client

API_KEY = "Your_API_KEY"

client = Client(API_KEY)
```

#### <b>Parameters</b>

Parameter | description
--------- | -----------
`api_key` | Your [API KEY](#getting-your-own-token)

<br>

## <b>Bans</b>

### <b>Getting a specific ban</b>

```python
print(client.getban(777000))
```

#### <b>Parameters</b>

Parameter | description
--------- | -----------
`user_id` | Id of Telegram User.

<br>

### <b>Getting a list of all bans</b>

```python
print(client.getbans())
```

#### <b>Required Permission Level</b>
`Admin`

Read more about Bans from [here](https://docs.userge.tk/#bans)

<br>

## <b>Tokens</b>

### <b>Getting your own token</b>

To get your own token, go to [@UsergeFedBot](https://t.me/UsergeFedBot) and create one.

<br>

### <b>Getting about your own token</b>

```python
print(client.get_me())
```

<br>

### <b>Deleting your own token</b>

```python
client.delete_my_token()
```

Read more about Tokens from [here](https://docs.userge.tk/#tokens)

<br>

## <b>Version</b>

```python
print(client.get_version())
```

<br>

## <b>Stats</b>

```python
print(client.get_api_stats())
```

<br>

# <b>Copyright</b>

Copyright (C) 2021 by UsergeTeam@Github, < https://github.com/UsergeTeam >.

This project is part of < https://github.com/UsergeTeam > project,
and is released under the "GNU v3.0 License Agreement".
Please see < https://github.com/UsergeTeam/Userge-Federation/blob/master/LICENSE >

All rights reserved.