semvec/pypi-packages huggingface dataset:
nr.types 3.2.0
Toolbox with useful Python classes and type magic.
License: MIT

# nr.types

[![CircleCI](https://circleci.com/gh/NiklasRosenstein/python-nr.types.svg?style=svg)](https://circleci.com/gh/NiklasRosenstein/python-nr.types)

`nr.types` is a Python library aiming to provide a broad set of common tools
for developing Python applications.

This library is published to [PyPI] and [Conda-forge]. It is compatible with
CPython 2.7 and 3.4+.

  [PyPI]: https://pypi.org/project/nr.types/
  [Conda-forge]: https://github.com/conda-forge/nr.types-feedstock

__Table of Contents__

* `nr.types.abc` &ndash; Alias for `collections.abc` or `collections`.
* `nr.types.collections` &ndash; Additional container data structures.
* `nr.types.generic` &ndash; Write classes with type parameters.
* `nr.types.interface` &ndash; Programming against interfaces in Python,
  inspired by Zope.
* `nr.types.meta` &ndash; Useful metaclasses.
* `nr.types.proxy` &ndash; Eager and lazy object proxies.
* `nr.types.singletons` &ndash; Provides singletons like `NotSet`.
* `nr.types.stream` &ndash; Streaming iterators in Python.
* `nr.types.structured` &ndash; Data-model description library.
* `nr.types.sumtype` &ndash; Allows you to create sumtypes in Python.
* `nr.types.utils` &ndash; More generic utilities.
  * `nr.types.utils.classdef` &ndash; Helpers for writing class definitions.
  * `nr.types.utils.funcdef` &ndash; Helper for writing functions.
  * `nr.types.utils.function` &ndash; Utilities for function objects.
  * `nr.types.utils.module` &ndash; Utilities for module objects.
  * `nr.types.utils.typing` &ndash; Utilities for objects from the `typing` module.

### Installation

    pip install nr.types

### Run Tests

    pip install -e .[test]
    pytest --cov=./src/nr

---

<p align="center">Copyright &copy; Niklas Rosenstein 2019</p>
easyreq 1.2.0
Test package
License: MIT
Requires Python: >=3

# EasyReq

### Python package for easy `requirements.txt` file generating or altering

    pip install easyreq

    easyreq --help


## Project searching

It will find all packages imports used in files in project, check installed version of the package using `pip freeze` and generate `requirements.txt` file based on that 

**If you want to search current directory you are in**

    :/home/user/projectName$ easyreq

**Or you can specify a path to a project you want to use it for**

    :/home/user/projectName$ easyreq /home/user/someOtherProjectName/

## Altering already existing requirements.txt

If a package in rquirements has specified version (eg. `urllib3==1.25.7`) it will be changed as a minimum (eg. `>=1.25.7`) and added a maximum one version higher (eg. `<2`)  
If a package has no version specified it will try to find installed one using `pip freeze` and add it as a minimum and add a maximum one version higher

**In order to alter `requirements.txt` file**

    :/home/user/projectName$ easyreq /home/user/projectName/requirements.txt

Or

    :/home/user/projectName$ easyreq requirements.txt
sucket 0.3.4
A tool to get all files from an S3 bucket
License: MIT
Requires Python: >=3.6,<4.0

# Sucket

A tool to download all objects from an S3 bucket. Supports filtering keys by a prefix.

## Help

```
-> % sucket --help
Usage: sucket [OPTIONS] BUCKET_NAME [PREFIX]

  Download all files from a S3 bucket

  Everything from the bucket BUCKET_NAME is downloaded, with an optional key
  filter, specified with PREFIX

  By default the "folder" mode is used, which will keep the bucket "folder
  structure" when downloading.

  The "flat" mode will download all objects into the current folder by
  adding the folder structure into the key name.

  The "keys-only" will completely disregard the folders and put all files in
  the current folder.

Options:
  -m, --mode [folder|flat|keys-only]
                                  The structure to download the objects in.
  -y, --yes                       Don't prompt for continuing
  -q, --quiet                     Don't print out any info, assumes --yes
  -s, --semaphores INTEGER        Max number of asynchronous requests to make.
                                  Default: 1000
  --help                          Show this message and exit.
```

## Examples

![folder](https://raw.githubusercontent.com/ikornaselur/sucket/master/.github/examples/folder.png)
![flat](https://raw.githubusercontent.com/ikornaselur/sucket/master/.github/examples/flat.png)
![keys-only](https://raw.githubusercontent.com/ikornaselur/sucket/master/.github/examples/keys-only.png)

## Notes

This has only been tested on a fairly limited set of data, but has worked well
for ~3500 small files. Need to tweak and experiment with larger files.

# Special thanks

This is heavily based on a script that [@steinnes](https://github.com/steinnes) wrote some time ago and has
been very useful to me for a long time, the name was entirely his idea.