semvec/pypi-packages huggingface dataset:
funapis 0.4
Command line tool for some fun api usage

<!-- TABLE OF CONTENTS -->
## Table of Contents

* [About the Project](#about-the-project)
  * [Built With](#built-with)
* [Getting Started](#getting-started)
  * [Prerequisites](#prerequisites)
  * [Installation](#installation)
* [Usage](#usage)
* [License](#license)
* [Contact](#contact)



<!-- ABOUT THE PROJECT -->
## About The Project

This project is built with the intent to harness free apis and provide a fun way to interact with them. (Terminal is fun, won't you agree?)
Sub Projects:-
- **numn**: A command line tool to get interesting facts about a number, date or year.

(others: coming soon)

### Built With
* [Python](https://www.python.org/)
* [RapidAPI](https://rapidapi.com/)



<!-- GETTING STARTED -->
## Getting Started

As this is a simple pip module, you can install it globally or in a virtual environment.

### Prerequisites

Virtual environment is not recommended as it won't be accesible globally.
* virtual env
```sh
$ python -m virtualenv venv
$ source ./venv/bin/activate
```

### Installation

1. Get a free API Key at [https://rapidapi.com/](https://rapidapi.com/) (*optional)
2. Install module
```sh
$ pip install funapis
```


<!-- USAGE EXAMPLES -->
## Usage

Using funapis is pretty simple from command line.

* **numn** - Number Apis
    * numn *options*
        * -h
        * -f
        * -ft
        * -fy
        * -fd

<!-- LICENSE -->
## License

Distributed under the MIT License. See `LICENSE` for more information.



<!-- CONTACT -->
## Contact

Nirabhra Tapaswi - nirabhratapaswi@gmail.com

Project Link: [https://github.com/nirabhratapaswi/funapis](https://github.com/nirabhratapaswi/funapis)
Pip Link: [https://pypi.org/project/funapis/](https://pypi.org/project/funapis/)
pyeasysocket 1.0.0
Python TCP and UDP sockets made easy.

[![Build Status](https://travis-ci.org/SlashGordon/pyeasysocket.svg?branch=master)](https://travis-ci.org/SlashGordon/pyeasysocket)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyeasysocket?style=plastic)
[![Coverage Status](https://coveralls.io/repos/github/SlashGordon/pyeasysocket/badge.svg?branch=master)](https://coveralls.io/github/SlashGordon/pyeasysocket?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/30808a98d54b4f24bf26f5a89b92501a)](https://www.codacy.com/manual/SlashGordon/pyeasysocket?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=SlashGordon/pyeasysocket&amp;utm_campaign=Badge_Grade)

# pyeasysocket
Python TCP and UDP sockets made easy.

## install

```shell
pip install pyeasysocket
```

## quick start

Create a TCPReceiver:

```python
from pyeasysocket.udp import UDPReceiver
from pyeasysocket.tcp import TCPReceiver

receiver_udp = UDPReceiver('localhost', 8001)
receiver = TCPReceiver('localhost', 8000)
try:
    # run background thread for receive
    receiver.start()
    # wait for data
    received_data = receiver.data
finally:
    receiver.join() # closes the background thread
```

Or use the advantage of a with statement with the guarantee that the connection will be closed.

```python
import time
from pyeasysocket.tcp import TCPReceiver, TCPClient

client = TCPClient('localhost', 8000)
with TCPReceiver('localhost', 8000) as receiver:
    client.send('test')
    time.sleep(0.2) # only for timing purpose
    received_data = receiver.data # test
```
## issue tracker

[https://github.com/SlashGordon/pyeasysocket/issuese](https://github.com/SlashGordon/pyeasysocket/issues")