semvec/pypi-packages huggingface dataset:
Api-Counter 2.2.3
Simple API Counter from log files or folder.
License: MIT
Requires Python: >=3.11.0

# Simple API Call Counter

## Environment
1. Python 3.11.x

It is recommended to set with pyenv.
<br>If you can configure the Python execution environment in another way, you can skip the pyenv guide below.

### pyenv

~~~shell
$ pyenv install 3.11.2
$ pyenv virtualenv 3.11.2 url_counter
$ pyenv local url_counter
~~~

### Install

~~~shell
$ pip install api-counter
~~~

### Run

~~~shell
$ counter [FILE]  # Quick start with a single file.
~~~

~~~shell
$ counter --help  # Show me the help.

$ counter -d . -r -f  # Counts urls from all (json and log) files under the current folder and 
                      # creates a result file (however, json files starting with result_ are not included!)
~~~

#### Example of Using Options (Refer to the Help)
~~~shell
$ counter 000.json  # Display the count result from 000.json on the screen

$ counter 000.json -f  # Display the count result from 000.json on the screen and create a result_{date_time}.json file

$ counter 000.json 111.json 222.json ...  # Count multiple json files and display the results on the screen

$ counter 000.json 111.json 222.json ...  -f  # Count multiple json files, display the results on the screen, and create a result file

$ counter -d ./0000  # Count all json files in the 0000 folder and display the result (subfolders are not processed)

$ counter -d ./0000  -f  # Count all json files in the 0000 folder, display the result, and create files (subfolders are not included)

$ counter -d -r -f ./0000  # Count all json files in the 0000 folder, display the result, and create files (including subfolders)
~~~

### Test (unittest with pytest)

~~~shell
$ pytest -svx -rsa tests
~~~

## Result File Format

Format: result_{date_time(%Y%m%d_%H%M%S)}.json
~~~jsonc
{
    "targets": [ 
        list of counted files 
    ],
    "result": [
        "Counted URL: 1st place in frequency",
        "Counted URL: Sorted in descending order of frequency"
    ]
}
~~~
Sample: result_20231209_201928.json
~~~jsonc
{
    "targets": [
        "tests/samples/nginx.log"
    ],
    "result": [
        "GET /api/docs: 18",
        "GET /api: 17",
        "POST /api/v1/social/signup: 4",
        "DELETE /api/v1/users/95: 2",
        "PUT /api/v1/users/me: 1",
        "POST /api/v1/social/profile/format: 1",
        "POST /api/v1/social/profile: 1"
    ]
}
~~~

## One More Thing (About the ignore option)
If you want to specify lines to exclude from the counter. (e.g. request from a specific IP address, etc.)
<br>You can set export ignores=1.1.1.1 or export ignores=1.1.1.1,2.2.2.2 (no space allowed).

~~~shell
$ export ignores=1.1.1.1

or for multiple ignores.
$ export ignores=1.1.1.1,2.2.2.2
~~~

And surprisingly, this option can work with any string. (e.g. '/api/token')
~~~shell
$ export ignores='/api/token'

or for multiple ignores.
$ export ignores='/api/token',2.2.2.2
~~~
py-habitica 0.0.0
An API wrapper for Habitica's API, in Python.
License: MIT

# py-habitica

[![PyPI](https://img.shields.io/pypi/v/py-habitica)](https://pypi.org/project/py-habitica)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/py-habitica)](https://pypi.org/project/py-habitica/#files)
![Lines of Code](https://img.shields.io/github/languages/code-size/ankitica/py-habitica)

- [py-habitica](#py-habitica)
  - [Installation](#installation)
  - [Usage](#usage)
  - [Example](#example)

A Python wrapper for the **Habitica API**.

## Installation

Installation via **pip**:

```
pip install py-habitica
```

## Usage

## Example
fastapi-camelcase 2.0.0
Package provides an easy way to have camelcase request/response bodies for Pydantic
License: MIT
Requires Python: >=3.9

[![CircleCI](https://circleci.com/gh/nf1s/fastapi-camelcase.svg?style=shield)](https://circleci.com/gh/nf1s/fastapi-camelcase) [![codecov](https://codecov.io/gh/nf1s/fastapi-camelcase/branch/master/graph/badge.svg)](https://codecov.io/gh/nf1s/fastapi-camelcase) [![Downloads](https://pepy.tech/badge/fastapi-camelcase)](https://pepy.tech/project/fastapi-camelcase) ![GitHub Pipenv locked Python version](https://img.shields.io/github/pipenv/locked/python-version/nf1s/fastapi-camelcase) ![GitHub](https://img.shields.io/github/license/nf1s/fastapi-camelcase)

# Fastapi Camelcase

Package for providing a class for camelizing request and response bodies for fastapi
while keeping your python code snake cased.

Full documentation can be found [here](https://nf1s.github.io/fastapi-camelcase/)

## How to install

```bash
pip install fastapi-camelcase
```

## Dependencies

    pydantic
    pyhumps

## How to use

```python
# using CamelModel instead of Pydantic BaseModel
from fastapi_camelcase import CamelModel


class User(CamelModel):
    first_name: str
    last_name: str
    age: int
```

## How to use (full example)

```python
import uvicorn
from fastapi import FastAPI
from fastapi_camelcase import CamelModel


class User(CamelModel):
    first_name: str
    last_name: str
    age: int


app = FastAPI()


@app.get("/user/get", response_model=User)
async def get_user():
    return User(first_name="John", last_name="Doe", age=30)


@app.post("/user/create", response_model=User)
async def create_user(user: User):
    return user


if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8000)
```
pyxdc 0.2.0
Python library with tools for XinFin blockchain.
License: MIT
Requires Python: >=3.6,<4
Keywords: xinfin,wallet,protocol,blockchain

# PyXDC

[![Build Status](https://travis-ci.com/meherett/pyxdc.svg?branch=master)](https://travis-ci.org/meherett/pyxdc?branch=master)
[![PyPI Version](https://img.shields.io/pypi/v/pyxdc.svg?color=blue)](https://pypi.org/project/pyxdc)
[![Documentation Status](https://readthedocs.org/projects/pyxdc/badge/?version=master)](https://pyxdc.readthedocs.io/en/master/?badge=master)
[![PyPI Python Version](https://img.shields.io/pypi/pyversions/pyxdc.svg)](https://pypi.org/project/pyxdc)
[![Coverage Status](https://coveralls.io/repos/github/meherett/pyxdc/badge.svg?branch=master)](https://coveralls.io/github/meherett/pyxdc?branch=master)

Python library with tools for XinFin blockchain. 

## Installation

```
$ pip install pyxdc
```

If you want to run the latest version of the code, you can install from git:

```
$ pip install git+git://github.com/meherett/pyxdc.git
```

For the versions available, see the [tags on this repository](https://github.com/meherett/pyxdc/tags).

## Development

We welcome pull requests. To get started, just fork this repository, clone it locally, and run:

```
$ pip install -e .[tests] -r requirements.txt
```

## Testing

You can run the tests with:

```
$ pytest
```

Or use `tox` to run the complete suite against the full set of build targets, or pytest to run specific 
tests against a specific version of Python.

## License

Distributed under the [MIT](https://github.com/meherett/pyxdc/blob/master/LICENSE) license. See ``LICENSE`` for more information.
ktechpayapi 1.3.2
A python library to consume KtechPay API
License: MIT
Requires Python: >=3.8.0
Keywords: ktechpay python library


# ktechpay-python
Python plugin for [KtechPay](https://pay.ktechhub.com/) View on [pypi.python.org](https://pypi.org/project/ktechpayapi/)

## Installation
```sh
pip install ktechpayapi
```

Instantiate KtechPay

```python
from ktechpayapi.ktechpay import Kteckpay

ktech_secret_key = "kt_test_23cf0"

ktechpay = Kteckpay(ktech_secret_key=ktech_secret_key)

# to use transaction class
print(ktechpay.transaction.list())

# initiate
print(ktechpay.transaction.initialize(
    amount=3,
    email="info@ktechhub.com"
))

print(ktechpay.transaction.verify(reference="e1b6679c5aad4bd3999953ac78e677a79d28d539085e409ebde1be640ebc27e7"))
```

## Static Use
To start using the KtechPay Python API, you need to start by setting your secret key.

You can set your secret key in your environment by running:

```sh
export KTECH_SECRET_KEY = 'your_secret_secret_key'
```

After exporting the keys, you can use the api like this
```python
from ktechpayapi.transaction import Transaction

# to use transaction class
print(Transaction.list())

# initiate
print(Transaction.initialize(
    amount=3,
    email="info@ktechhub.com"
))

print(Transaction.verify(reference="e1b6679c5aad4bd3999953ac78e677a79d28d539085e409ebde1be640ebc27e7"))
```