semvec/pypi-packages huggingface dataset:
pyprimer 0.1.0
A simple collection of prime number related functions.
Requires Python: >=3.6

# PyPrimer

A simple collection of prime number related functions.

## Install

```shell script
$ pip install pyprimer
```

For bleeding edge

```shell script
$ pip install git+https://github.com/mentix02/pyprimer
```

## Docs

+ `is_prime(int) -> bool`
    + Checks if given number n is prime.

```pydocstring
>>> from pyprimer import is_prime
>>> is_prime(3)
True
```

+ `primes_till(int) -> List[int]`
    + Returns a list of all primes numbers up until n.

```pydocstring
>>> from pyprimer import primes_till
>>> primes_till(6)
[2, 3, 5, 7]
```

+ `n_primes(int) -> List[int]`
    + Returns a list of first n natural primes numbers.

```pydocstring
>>> from pyprimer import n_primes
>>> n_primes(6)
[2, 3, 5, 7, 11, 13]
```

+ `n_prime(int) -> int`
    + Returns the nth prime number.

```pydocstring
>>> from pyprimer import n_prime
>>> n_prime(13)
41
```

+ `prime_generator() -> Iterator[int]`
    + Returns an iterable of ints with each next element being the next prime number.

```pydocstring
>>> from pyprimer import prime_generator
>>> total = 0
>>> g = prime_generator()
>>> for n in g:
...   if n == 13:
...     break
...   total += n
>>> print(total)
28
```
HardwareProvider 0.1.7
A package used to get hardware info and specs.
Requires Python: >=3.3

# HardwareProvider

This package finds info about the hardware. 

The github page is: https://github.com/kethan1/HardwareProvider.
The pypi page is: https://pypi.org/project/HardwareProvider/

This page is installable with pip, pip install HardwareProvider.
dlimg 0.1.10
Fast image downloader
Requires Python: >=3.6

# dlimg

## Installation

```sh
pip3 install dlimg
```

## Usage

```sh
# download images in url
dlimg 'https://wear.jp/coordinate/'

# download 'dog' from google
dlimg --site google --query dog

# download images with one second for interval
dlimg --site bing --query cat --wait 1

# overwrite `--wait` with hoge.json and 3x faster at night(1-6am)
dlimg --site bing --query cat --wait 1 --waitlist hoge.json --nightshift 3
```

```json
{
    "wear.jp": 5,
    "cdn.wimg.jp": 1
}
```

## Available Sites

| site                 | query |
| -------------------- | ----- |
| google               |   O   |
| bing                 |   O   |
| unsplash             |   O   |
| anysite              |   X   |
| irasutoya            |   O   |
| wear                 |   X   |

## Developing

* create a python source file under `lib/sites/` and define these three objects.

```py
site = 'site name'
match = re.compile('https?://example.com/photos?query=.*')

async def info_getter(**args):
    ...
    return {
        'title': title,
        'imgs': imgs_generator # generate image urls
    }
```
adobe-analytics-api-20 1.0.0
Adobe Analytics API 2.0 Library
Requires Python: >=3.0

adobe-analytics-api - An Adobe Analytics API 2.0 library for python
====================
Installation
------------
You can install this through pip: pip install adobe-analytics-api_20

Usage
------------
```python
from  adobe_analytics import api
import authentication as auth

config = {
    'client_id' : 'CLIENT_ID',
    'client_secret' : 'CLIENT_SECRET',
    'org_id' : 'ORG_ID',
    'tech_account' : 'TECH_ACCOUNT',
    'keyfile_path' : 'KEYFILE_PATH',
    'company_id' : 'COMPANY_ID'
}

definition = {
    "reportsuite":"report-suite",
    "start_date": "2019-10-01",
    "end_date": "2019-10-01",
    "dimensions":["Day", "variables/evar50"],
    "metrics":[{"name":"metrics/orders"}, {"name": "metrics/revenue"}],
    "segments":["Name|id of a Segment"]
}

jwt_token = auth.getToken(config["org_id"], config["tech_account"], config["client_id"], 3)
print(jwt_token)
jwt = auth.encrypt_jwt(jwt_token, config["keyfile_path"])
print(jwt)
token = auth.authorize(config["client_id"], config["client_secret"], jwt)
print(token)
response = api.report(token['access_token'], config["client_id"], config["company_id"], definition["reportsuite"], definition["dimensions"], definition["metrics"], definition["start_date"], definition["end_date"], segments = definition["segments"])

print(response)
```
artella-installer-maya 0.0.3
Repository that contains configuration files used by Artella Maya installer.

artella-installer-maya
============================================================

Repository that contains configuration files used by Artella Maya installer.

.. image:: https://github.com/artella/artella-installer-maya/workflows/Python%20package/badge.svg
    :target: https://github.com/artella/artella-installer-maya/actions?query=workflow%3A%22Python+package%22

.. image:: https://github.com/artella/artella-installer-maya/workflows/Create%20Release/badge.svg
    :target: https://github.com/artella/artella-installer-maya/actions?query=workflow%3A%22Create+Release%22

.. image:: https://img.shields.io/pypi/v/artella-installer-maya?branch=master&kill_cache=1
    :target: https://pypi.org/project/artella-installer-maya
version-upper 0.2.2
Bump version strings in your repo
Requires Python: >=3.6

# version-upper

[![tests](https://github.com/hkiang01/version-upper/workflows/tests/badge.svg)](https://github.com/hkiang01/version-upper/actions?query=workflow%3Atests)
[![Coverage Status](https://coveralls.io/repos/github/hkiang01/version-upper/badge.svg?branch=master&service=github)](https://coveralls.io/github/hkiang01/version-upper?branch=master&service=github)

Primarily a reaction to [bumpversion](https://github.com/peritus/bumpversion) not supporting git hashes -- [issue](https://github.com/peritus/bumpversion/issues/125)

![Demo](demo.gif)

## Overview

```
Usage: version-upper [OPTIONS] COMMAND [ARGS]...

  A tool to update version strings in files using semantic versioning and
  commit hashes.

  Examples:

  # bump commit hash version
  version-upper bump commit_hash

  # bump patch version
  version-upper bump patch

  # bump patch version as release candidate
  version-upper bump patch --release-candidate

  # bump minor version
  version-upper bump minor

  # bump major version
  version-upper bump major

  The config file adheres to the Config Pydantic schema, and is named
  version-upper.json by default.

  Here is a sample config:
  {
      "current_version": "0.0.0",
      "current_semantic_version": "0.0.0",
      "files": []
  }

Options:
  --config TEXT  [default: version-upper.json]
  --help         Show this message and exit.

Commands:
  bump                      Bumps version strings, updates config.
  config-schema             Prints the config schema in JSON
  current-semantic-version  Prints the current semantic version
  current-version           Prints the current version
  release                   Removes rc from the version strings
  sample-config             Prints a sample config
```

## Configuration

Create a file called `version-upper.json` (can be overridden using `--config`) like below:

```json
{
  "current_version": "0.0.0",
  "current_semantic_version": "0.0.0",
  "files": ["main.py", "app/version.json"]
}
```

Be sure to add files to `"files"` otherwise nothing will be updated :)