semvec/pypi-packages huggingface dataset:
tohu 0.6.7
Create random data in a controllable way
License: MIT

[![PyPI version](https://badge.fury.io/py/tohu.svg)](https://badge.fury.io/py/tohu) [![CircleCI](https://circleci.com/gh/maxalbert/tohu.svg?style=shield)](https://circleci.com/gh/maxalbert/tohu)

<img src="./docs/img/logo.png" alt="Tohu Logo" width="70px">

tohu: Your friendly synthetic data generator
============================================

Overview
--------

TODO


Get it now
----------

```bash
$ pip install tohu
```


Documentation
-------------

Full documentation is available at https://maxalbert.github.io/tohu/


Requirements
------------

- Python >= 3.6

Tohu requires Python 3.6 or greater. There is no intention to support earlier versions.


License
-------

See [LICENSE](./LICENSE)


Attributions
------------

- The tohu logo is ["Chaos"](https://thenounproject.com/madeirah/uploads/?i=1893477), created by [Anna Sophie](https://thenounproject.com/madeirah/) from the [Noun Project](https://thenounproject.com/) (licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/legalcode))
NightCrawler 0.1.6
Website crawling bot
License: MIT
Keywords: crawler spider website

Night Crawler
=============

Description
-----------

The NightCrawler is site crawling/spider tool to gather links at the given domain by walking through
the whole site and generating simple sitemap.

Limitations
-----------

This tools is just a demo. It's single-threaded script that walks every page it gets and it's
not optimized for speed.

The script sticks to the url provided and does not dive into subdomains of the given domain
even if encounters internal redirect like `example.com` -> `www.example.com`

Possible enhancements
---------------------

* Use multi-threading with thread pools
* Use generators to lower memory footprint and gain a bit more speed
* Make preliminary HEAD request to distinguish between text and binary files
* Check Content-Type and exclude files that are not HTMLs
* Add matchers and sitemap generators for additional sitemap flavour (images, videos, etc.)
* More tests (already included tests are only for the most critical classes)

Installation
------------

1. Requirements
~~~~~~~~~~~~~~~

1. Python >= 3.2
2. PIP

2a. Installation without virtualenv
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Run the following command in shell:

.. code-block:: bash

  pip install NightCrawler

2b. Installation in virtualenv
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run the following command in shell:

.. code-block:: bash

  virtualenv .env
  . .env/bin/activate
  pip install NightCrawler

2c. Installation from source (development)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To install the package from source one have to create virtualenv after cloning the repository

.. code-block:: bash

  git clone https://github.com/szczad/NightCrawler.git
  cd NightCrawler
  virtualenv .env
  . .env/bin/activate
  pip install -e ./

3. (optional) Testing
~~~~~~~~~~~~~~~~~~~~~

When installed from sources in development mode the script can be tested with the following command

.. code-block:: bash

  . .env/bin/activate
  python setup.py test

Running the script
------------------

0. Help
~~~~~~~

.. code-block:: bash

    nightcrawler --help

1. Running the script installed globally
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

  nightcrawler <url|domain>

2. Running the script installed in virtualenv
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

    <path_to_virtualenv>/bin/nightcrawler <url|domain>

or

.. code-block:: bash

    . .env/bin/activate
    nightcrawler <url|domain>
aysncfreesia 0.0.2
A concise and lightweight web framework.✨
License: MIT
Keywords: freesia,framework,backend

![freesia](./images/logo.png)

## Introduction
Freesia is a concise and lightweight async web framework. Its api is inspired by Flask.

## Installation
```bash
pip3 install asyncfreesia
```

## Docs
You can find the project's detailed API documentation on [here](https://freesia.readthedocs.io/en/latest/?).

## Example
*hello world*
```python
from freesia import Freesia

app = Freesia()

@app.route('/hello/<name>')
async def hello(request, name):
    return "Hello, " + name + "!"

if __name__ == "__main__":
    app.run()
```

*middleware*
```python
from freesia import Freesia

app = Freesia()

@app.route("/<name>")
async def hello(request, name):
    print("enter user handler")
    return "hello, " + name


async def middleware1(request, handler):
    print("enter middleware1")
    res = await handler()
    print("exit middleware1")
    return res + " !"


async def middleware2(request, handler):
    print("enter middleware2")
    res = await handler()
    print("exit middleware2")
    return res + " :D"


app.use([middleware1, middleware2])

if __name__ == "__main__":
    app.run()
```

*session*
```python
from freesia import Freesia, set_up_session, get_session, Response
from freesia.session import SimpleCookieSession

app = Freesia()

@app.route("/")
async def hello(request):
    s = await get_session(request)
    if "count" not in s:
        s["count"] = 1
        return Response(text="Hello, stranger!")
    else:
        s["count"] += 1
        return Response(text="I've seen you %d times" % s["count"])

if __name__ == "__main__":
    set_up_session(app, SimpleCookieSession)
    app.run()
```

## More
You can see more exmaple and usags in [docs](https://freesia.readthedocs.io/en/latest/?) and [examples](./examples).