semvec/pypi-packages huggingface dataset:
ansq 0.3.0
Written with native Asyncio NSQ package
License: MIT
Requires Python: >=3.8

# ansq - Async NSQ
[![PyPI version](https://badge.fury.io/py/ansq.svg)](https://badge.fury.io/py/ansq)
![Tests](https://github.com/list-family/ansq/workflows/Test/badge.svg)
[![Coverage](https://codecov.io/gh/list-family/ansq/branch/master/graph/badge.svg)](https://codecov.io/gh/list-family/ansq)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ansq)

Written with native Asyncio NSQ package

## Installation

```commandline
python -m pip install ansq
```

## Overview
- `Reader` — high-level class for building consumers with `nsqlookupd` support
- `Writer` — high-level producer class supporting async publishing of messages to `nsqd`
  over the TCP protocol
- `NSQConnection` — low-level class representing a TCP connection to `nsqd`:
    - full TCP wrapper
    - one connection for `sub` and `pub`
    - self-healing: when the connection is lost, reconnects, sends identify
      and auth commands, subscribes to previous topic/channel

## Features

- [x] SUB
- [x] PUB
- [x] Discovery
- [ ] Backoff
- [ ] TLS
- [ ] Deflate
- [ ] Snappy
- [x] Sampling
- [ ] AUTH

## Usage

### Consumer

A simple consumer reads messages from "example_topic" and prints them to stdout.

```python
import asyncio

import ansq


async def main():
    reader = await ansq.create_reader(
        topic="example_topic",
        channel="example_channel",
    )

    async for message in reader.messages():
        print(f"Message: {message.body}")
        await message.fin()

    await reader.close()


if __name__ == "__main__":
    asyncio.run(main())
```

### Producer

A simple producer sends a "Hello, world!" message to "example_topic".

```python
import asyncio

import ansq


async def main():
    writer = await ansq.create_writer()
    await writer.pub(
        topic="example_topic",
        message="Hello, world!",
    )
    await writer.close()


if __name__ == "__main__":
    asyncio.run(main())
```


## Contributing

Create and activate a development virtual environment.

```bash
python -m venv venv
source venv/bin/activate
```

Install `ansq` in editable mode and its testing dependencies.

```bash
python -m pip install -e .[testing]
```

Run tests.

```bash
pytest
```
nics 3.0.0b17
Automated markdown-based documentation page workflow
License: MIT
Requires Python: >=3.8
Keywords: python,toolkit,mykit

# Now I Can Sleep

Minimal settings, markdown-based automated documentation workflow for GitHub repositories.

![NICS' banner](https://raw.githubusercontent.com/nvfp/now-i-can-sleep/master/assets/logo200.png)

[![Rebuild docs](https://github.com/nvfp/now-i-can-sleep/actions/workflows/rebuild-docs.yml/badge.svg)](https://github.com/nvfp/now-i-can-sleep/actions/workflows/rebuild-docs.yml)
[![pypi version](https://img.shields.io/pypi/v/nics?logo=pypi)](https://pypi.org/project/nics/)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://choosealicense.com/licenses/mit/)


## Installation

1. Install via pip, run `pip install nics`
2. Navigate to your project root folder
3. Run `nics init`
4. Follow the wizard, and you all set!


## Links

- [Documentation](https://nvfp.github.io/now-i-can-sleep)
- [Changelog](https://nvfp.github.io/now-i-can-sleep/changelog)
- [Supports💙](https://nvfp.github.io/many-thanks)
- [FAQ](https://nvfp.github.io/now-i-can-sleep/faqs)


## Troubleshoot

- To report bugs or ask questions, please open an issue or submit a pull request.


## License

This project is licensed under the MIT license.
Pytanggalmerah 3.1.1
python module to check indonesia holiday calendar (include sunday)
License: MIT
Keywords: holiday indonesia calendar sunday

[![status workflow test](https://github.com/guangrei/pytanggalmerah/actions/workflows/python-app.yml/badge.svg)](https://github.com/guangrei/pytanggalmerah/actions) [![status workflow build](https://github.com/guangrei/pytanggalmerah/actions/workflows/release_to_pypi.yml/badge.svg)](https://github.com/guangrei/pytanggalmerah/actions)


[![Downloads](https://static.pepy.tech/badge/pytanggalmerah)](https://pepy.tech/project/pytanggalmerah) [![Downloads](https://static.pepy.tech/badge/pytanggalmerah/month)](https://pepy.tech/project/pytanggalmerah) [![Downloads](https://static.pepy.tech/badge/pytanggalmerah/week)](https://pepy.tech/project/pytanggalmerah)

**Pytanggalmerah** adalah module python untuk mengecek tanggal merah berdasarkan hari minggu dan hari libur nasional.

### installasi

```
pip install pytanggalmerah
```

### menggunakan Pytanggalmerah

``` python
from pytanggalmerah import TanggalMerah

t = TanggalMerah(cache_path = None, cache_time = 600) # cache_path = None berarti directory cache automatis
t.check() # mengecek apakah tanggal merah, return boolean.
t.is_holiday() # mengecek apakah hari libur nasional, return  boolean.
t.is_sunday() # mengecek apakah hari minggu, return booelan.
t.get_event() # mendapatkan event, return list.

```
 **mengecek specific tanggal tertentu** 

``` python
t.set_date("2019", "02", "05")
t.check()
```
 **mengatur zona waktu** 

secara default zona waktu pytanggalmerah adalah Asia/Jakarta tapi bisa diubah, seperti

``` python
t.set_timezone("Asia/Makassar")
t.check()
```
 **menggunakan lewat terminal**


```
$ harilibur # check harilibur
$ harilibur 2022 04 15 # check harilibur dengan spesifikasi
$ TIMEZSET = "Asia/Makasar" harilibur # mengecek harilibur dengan spesifikasi timezone

```

> harilibur command hanya mengecek tanggal merah dan tidak termasuk hari minggu.
### sumber data

**pytanggalmerah** menggunakan data yang bersumber dari google calendar, data yang telah lampau mungkin tidak tersedia & data yang sekarang masih bisa direvisi.