semvec/pypi-packages huggingface dataset:
hnclient 0.0.2
Python client for Hacker News API with cached API calls built in.
Keywords: python,hacker-news,api


# Hacker News Client  <img align="right" width="75" height="75" src="./img/hackernews-logo.png">

The Hacker News Client is a Python-based tool designed to seamlessly engage with the official Hacker News Firebase API. This client incorporates a built-in request-cache mechanism for each API call, allowing for the efficient handling of complete data dumps without the need for redundant subsequent calls. This feature significantly optimizes your data wrangling processes, saving you time and resources.

## Install <img align="center" width="23" height="23" src="https://media.giphy.com/media/sULKEgDMX8LcI/giphy.gif">
<br>

```
pip install hnclient
```

## Quick Start <img align="center" width="23" height="23" src="https://media.giphy.com/media/JIX9t2j0ZTN9S/giphy.gif">
<br>

First step is to initialize `HackerNewsClient` prior to making an API request. By default, client requests are cached. To disable cache, set the `disable_cache` argument to **True**:

```py
from hnclient import HackerNewsClient

client = HackerNewsClient()
```

To fetch stories from Hacker News, begin by using the **getstories** method. 

- :bulb: You can select specific story section by passing its name into the **story** argument. Here are few  examples: `Top`, `Best`, `Ask`, `Show`. 

- :bulb: You can also set the sorting order for all stories by their Hacker News score with the `descending` argument. Default is `False`.

```py
from hnclient import HackerNewsClient

client = HackerNewsClient()

data = client.get_stories("top", descending=False)
print(data)
```
The program above will print out a list of dictionaries where each dictionary holds the following metadata per story: :point_down:

```text
{'author': 'tristanho',
 'comments': 156,
 'id': 34006202,
 'score': 318,
 'text': 'Hey HN, cofounder of Readwise here. We&#x27;ve been working on this '
          'cross-platform reader app for about 2 years, excited to finally...'   ,
 'time': 1671140643,
 'title': 'Show HN: Readwise Reader, an all-in-one reading app',
 'url': 'https://readwise.io/read'}

```

## Data Wrangling <img align="center" width="23" height="23" src="https://media.giphy.com/media/hRYXatty4dJks/giphy.gif">
<br>

1. Collect a list of a specific metadata object. The available list of objects can be found in the printed dictionary above. For the example below, we are obtaining a list of all URLS pertaining to the **Top** stories:

```py
from hnclient import HackerNewsClient

client = HackerNewsClient()
data = client.get_stories("top")

urls = client.get_item("url", data)
print(urls)
```
&emsp; outputs:

```
    ['https://github.com/ifeelalright1970/ytmp',
     'https://mimosa.so/',
     'https://www.screen.studio/',
     'https://www.pinetarpoker.com',
    ...]
```

2. Select a random story from the client payload. For the example below, we are obtaiing a story pertaining from the **Best** stories.

```py
from hnclient import HackerNewsClient

client = HackerNewsClient()
data = client.get_stories("best")

random = client.get_random_story(data)
print(random)
```
jaraco.modb 6.1.0
MongoDB Object DataBase (MODB) for Python objects
Requires Python: >=3.8

.. image:: https://img.shields.io/pypi/v/jaraco.modb.svg
   :target: https://pypi.org/project/jaraco.modb

.. image:: https://img.shields.io/pypi/pyversions/jaraco.modb.svg

.. image:: https://github.com/jaraco/jaraco.modb/workflows/tests/badge.svg
   :target: https://github.com/jaraco/jaraco.modb/actions?query=workflow%3A%22tests%22
   :alt: tests

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Ruff

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code style: Black

.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest
..    :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2023-informational
   :target: https://blog.jaraco.com/skeleton


``jaraco.modb`` is a small, pure-Python library for persisting Python
objects to `MongoDB <https://www.mongodb.org/>`_.

Manual Usage
============

``jaraco.modb`` facilitates using `jsonpickle` to produce MongoDB-friendly
representations of pickleable Python objects for easy storage in a MongoDB
database.

One may simply encode and decode Python objects to MongoDB
BSON-friendly representations::

    class MyObject(object):
        def __init__(self, val):
            self.val = val

    import jaraco.modb
    import pymongo
    mongo_collection = pymongo.MongoClient().mydb.mycollection
    val = MyObject(3)
    # save the object to the DB
    id = mongo_collection.save(jaraco.modb.encode(val))
    # retrieve the object from the DB
    new_val = jaraco.modb.decode(mongo_collection.find_one(id))
    assert isinstance(new_val, MyObject)
    assert new_val.val == 3

A more detailed tutorial is now `published as a Jupyter Notebook
<https://nbviewer.jupyter.org/github/jaraco/jaraco.modb/blob/master/tutorial.ipynb>`_.


Automatic Usage
===============

``jaraco.modb`` also provides an SON Manipulator suitable for automatically
encoding arbitrary objects for a pymongo.Database::

    jaraco.modb.SONManipulator.install(mongo_collection.database)
    mongo_collection.save({'val': val})

Unfortunately, due to a limitation with the API of the SONManipulator,
it's not possible to save a custom object as the document itself (the
document must always be a dict).
qimp 0.2.1
Quantum image manimupaltion package wrapper for Qiskit.
Requires Python: >=3.8,<3.12
Keywords: qimp


# Qimp


<div align="center">

[![PyPI - Version](https://img.shields.io/pypi/v/qimp.svg)](https://pypi.python.org/pypi/qimp)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/qimp.svg)](https://pypi.python.org/pypi/qimp)
[![Tests](https://github.com/Giacomo-Antonioli/qimp/workflows/tests/badge.svg)](https://github.com/Giacomo-Antonioli/qimp/actions?workflow=tests)
[![Codecov](https://codecov.io/gh/Giacomo-Antonioli/qimp/branch/main/graph/badge.svg)](https://codecov.io/gh/Giacomo-Antonioli/qimp)
[![Read the Docs](https://readthedocs.org/projects/qimp/badge/)](https://qimp.readthedocs.io/)
[![PyPI - License](https://img.shields.io/pypi/l/qimp.svg)](https://pypi.python.org/pypi/qimp)

[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://www.contributor-covenant.org/version/2/0/code_of_conduct/)

</div>
![QImP Mascotte](https://github.com/Giacomo-Antonioli/QImP/blob/main/img/QImP.jpg?raw=true)


Quantum image manipulation package wrapper for Qiskit.


* GitHub repo: <https://github.com/Giacomo-Antonioli/qimp.git>
* Documentation: <https://qimp.readthedocs.io>
* Free software: MIT


## Features

* TODO

## Quickstart

TODO

## Credits

This package was created with [Cookiecutter][cookiecutter] and the [fedejaure/cookiecutter-modern-pypackage][cookiecutter-modern-pypackage] project template.

[cookiecutter]: https://github.com/cookiecutter/cookiecutter
[cookiecutter-modern-pypackage]: https://github.com/fedejaure/cookiecutter-modern-pypackage
robotframework-adls-library 0.0.1
Library for Robot Framework in which to interface with Azure Data Lake Storage Gen2 (ADLS)
Requires Python: >=3.7

# robotframework-azure-data-lake-storage

Robot Framework library which enables you to interface with Azure Data Lake Storage Gen2(ADLS).

# Requirements
- Python 3.7+ is required due to Azure dependencies.
- Robot Framework
- Azure Subscription

# Installation
```
pip install robotframework-adls-library
```

# Examples
```RobotFramework
*** settings ***
todo

*** Test Cases ***
todo
```

# Known limitations
- todo

# Further references
- todo
jaraco.geo 2.2.0
Geographic coordinates package
Requires Python: >=3.8

.. image:: https://img.shields.io/pypi/v/jaraco.geo.svg
   :target: https://pypi.org/project/jaraco.geo

.. image:: https://img.shields.io/pypi/pyversions/jaraco.geo.svg

.. image:: https://github.com/jaraco/jaraco.geo/workflows/tests/badge.svg
   :target: https://github.com/jaraco/jaraco.geo/actions?query=workflow%3A%22tests%22
   :alt: tests

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Ruff

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code style: Black

.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest
..    :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2023-informational
   :target: https://blog.jaraco.com/skeleton

Geographic support library

Requirements
============

The current geotrans2 dynamic libraries are currently built only
for Windows, so support for other platforms is currently not present.
However, the DMS class should be usable in a pure Python environment.

Contents
========

``jaraco.geo`` includes an object named DMS for storing and manipulating
values in degrees, minutes, and seconds. See the jaraco.geo module for
details and documentation.

``jaraco.geo`` also implements geotrans2 by the `NGA
<http://www.nga.mil>`_. See the tests directory in the
repository for sample usage.