semvec/pypi-packages huggingface dataset:
stares 0.2.0
REST API to serve static JSON files
Requires Python: >=3.8

# Stares API


Stares API is a lightweight service with the intent to rapidly prototype APIs and
to easily serve static content via a RESTful service.
It is based on [CherryPy](https://cherrypy.org), one of the fastest WSGI 
frameworks written in Python ([source](https://www.appdynamics.com/blog/engineering/a-performance-analysis-of-python-wsgi-servers-part-2/)).



## Features

Walks through a folder structure and provides each JSON file as a RESTful service.
The root element of the JSON file has to be an array.

Allowed query params per resource is the number of requestes elements `n`.
By default it serves one element.
In case you want to query all elements, just query the resource with `n = all`.

If you query more elements than the array consists of, then it repeats the entries.

Another query param is the `shuffle` parameter. Set it to `true` or `1` in order to query a random sample of the array list.
Again, if you combine it with `n` and `n > resource.length` then repitition will occur.

Each object, that is served, contains a key-value pair called `__hash`.
The `__hash` value is a uniquely assigned hash to each object, that is served.
This is useful, if you insist on excluding specific elements from the JSON file.


## Examples

The service is locally served on port `8080`.
The API base URL has the value `/api/v1`.


```
# query the first element of the sample resource "ipsum.json"
curl http://localhost:8080/api/v1/ipsum

# query the first 3 elements
curl http://localhost:8080/api/v1/ipsum?n=3

# query all elements
curl http://localhost:8080/api/v1/ipsum?n=all

# query a random element:
curl http://localhost:8080/api/v1/ipsum?shuffle=true
curl http://localhost:8080/api/v1/ipsum?shuffle=1

# query 3 random elements:
curl http://localhost:8080/api/v1/ipsum?n=3&shuffle=true

# query all elements in a random order
curl http://localhost:8080/api/v1/ipsum?n=all&shuffle=true

```



## Setup

At the moment, Stares API is not available at PyPI. I will try to add it soon.


Currently, the only way to host it is to clone the repository.
In the root folder of the repository (not the sources folder), execute the 
`stares.py` file.

```
# Directory: ./
src/stares.py [options]
```

By default, Stares API will look for a directory called `resources`.
The directory will be created, if it does not exist.
However, hot-reloading is not implemented yet.


## Configuration

TODO
 

## TODO: 

- [ ] Create a Pip package and provide it via pip
- [ ] Nested repositories, when walking through the folder structure
- [ ] Hotreloading of the resource directory
- [ ] Exception handling to increase UX
- [x] Docs page to describe the API resources
- [ ] Custom logger to increase UX
DeutschConjugator-pkg-Shynn 0.0.1
Deutsch command line conjugator
Requires Python: >=3.4

# Console Conjugator
A commandline conjugator

Conjugate your verbs easily with the Console Conjugator! 

Have you ever had trouble conjugating your verbs? Maybe had problems with remembering present perfects or simple past forms of your verb? If not, then you are not human. If so, welcome to our commandline conjugator. As of now, we support only Deutschsprachen (German Language), but we're growing slowly and surely. Many of our colleagues use commandline more so than GUI applications or websites, so we wanted to make a solution for them. Very useful for AP Students.

-Govind Gnanakumar, Shynn Lawrence

Hab einen guten Tag!
metashape 0.0.4
-
Requires Python: >3.7

# metashape ![Python package](https://github.com/podhmo/metashape/workflows/Python%20package/badge.svg) [![PyPi version](https://img.shields.io/pypi/v/metashape.svg)](https://pypi.python.org/pypi/metashape) [![](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/download/releases/3.7.0/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://black.readthedocs.io/en/stable/)

:construction: this project is under construction :construction:

## installing

```console
$ pip install metashape[cli]
```