semvec/pypi-packages huggingface dataset:
astromech 0.5.0
AWS service utilities for Lambda functions
License: MIT
Requires Python: >=3.7
Keywords: serverless aws labmda utilities utils

# Astromech - AWS Service Utilities for Lambda Functions

Astromech is a collection of utilities that I found myself copying all over my lambda functions and serverless
projects. For the sake of DRYing up my code, I collected them in a single library.

## Service Clients
Astromech implements lazy-initialization for Boto3 service clients:

For each service, there is a global client variable that gets reused between invocations of the labmda function
container. Code that want access to the client achieves this by using a `client()` function that initializes it
if necessary.

Code example:
```python
from astromech import s3, dynamodb

s3.client().get_object(Bucket=..., Key=...)
dynamodb.table().get_item(Key=...)
```

## LocalStack Support Made Easy
The service client initialization functions, look for the environment variable `LOCALSTACK_[SERVICE]_URL`
(for example, `LOCALSTACK_S3_URL`).
If it finds one, then it uses its value as the `endpoint_url` for the Boto3 client function.

All you have to do to run tests with [LocalStack](https://localstack.cloud) is to set these variables in your local
environment. No changes to the code are necessary.
Naturally, this works with any other downloadable version of AWS services, like
[DynamoDB local](https://hub.docker.com/r/amazon/dynamodb-local).


## Utility Functions
There are a few utility functions in each service. These usually save 2-3 lines of boilerplate code. Not a lot,
but for very common functionality that is repeated all across the code base, it becomes worthwhile.

For example, to check if an object exists on S3, you have to send a `head_object` request and catch the exception
if it doesn't exist. With `astromech.s3` you just call `exists(bucket, key)`, much like you would do with a local
file.


## Why "Astromech"?
In the Star Wars universe, astromech is a type of utility droid, the most famous of which (whom?) is R2-D2.

Read more on [Wookiepedia](https://starwars.fandom.com/wiki/Astromech_droid).

![R2-series astromech droids](https://vignette.wikia.nocookie.net/starwars/images/1/1d/Threeartoos.jpg/revision/latest?cb=20060115025836&format=original)
tarun 0.1.2
Extract many style file
License: MIT

#tarun

一键解压所有的压缩包

根据后缀，调用相应的tar命令

install 

	sudo python setup.py install

run

	tarun filename

当前支持的文件格式有

	1. xxx.tar
	2. xxx.tar.gz
	3. xxx.gz
	4. xxx.bz2
	5. xxx.bz
	6. xxx.tar
	7. xxx.Z or xxx.z
	8. xxx.tar.z or xxx.tar.Z
	9. xxx.zip

license  MIT
pv-prompt 1.10.1
PowerView shades toolkit
License: MIT
Requires Python: >=3.5.0


[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

# PowerView Command Prompt.

Utility for basic control over your PowerView shades. Used mainly for troubleshooting. Adding features as I see fit.

## Installation

Python >=3.5 needs to be installed.

```bash
pip install pv-prompt
```

## Usage

Start the tool by entering in the command line.

```
pvprompt
```

For extra startup options: 

```
pvprompt --help
```
sapp 0.4
Simple Application
License: MIT
Keywords: application,settings


Simple Application
------------------

About this project

This project will help starting an application, which needs to have initialization
step at the beginning (for example: for gathering settings) and use them in many
places/endpoints.
For example, normally you would need to use two separate mechanism for settings
in celery application and web application, because you should not use web
application startup in the celery app. This package provide sollution for this
problem.

More info on GitHub: https://github.com/socek/sapp
count-line 0.1.2
A command line tool to count lines and files numbers under current directory.
License: MIT
Requires Python: >=3


# count-line

## Usage
A cross-platform command line tool to count the amount of lines and files under current directory.

## Installation
You can install, upgrade, uninstall count-line with these commands(without $):
```
$ pip install count-line
$ pip install --upgrade count-line
$ pip unstall count-line
```

## Help
```
usage: line.py [-h] [-s SUFFIX | -f FILTER] [-d]

count the amount of lines and files under the current directory

optional arguments:
  -h, --help            show this help message and exit
  -s SUFFIX, --suffix SUFFIX
                        count by suffix file name, format: .suffix1.suffix2...
                        e.g: .cpp.py (without space)
  -f FILTER, --filter FILTER
                        count without filter name, format: .suffix1.suffix2...
                        e.g: .cpp.py (without space)
  -d, --detail          show detail results
```

## Examples
1. Count all files under the current directory:
```
$ line
Search in /Users/macbook/Desktop/Examples1/
file count: 4
line count: 373
```
2. Count all files under the current directory with detail results:
```
$ line -d
Search in /Users/macbook/Desktop/Examples2/

		========================================
		文件后缀名	文件数		总行数


		   .py		5		397


		   .cpp		240		11346


		总文件数: 245	总行数: 11743
		========================================


```
3. Count specified files under the current directory, using -s to pass suffix as parameters, if there are more than one parameter, don't have space, for example, count cpp files and python files:
```
$ line -s .cpp.py
Search in /Users/macbook/Desktop/Examples3/
file count: 3
line count: 243
$ line -s .cpp.py -d
Search in /Users/macbook/Desktop/Examples3/

		========================================
		文件后缀名	文件数		总行数


		   .py		5		397


		   .cpp		240		11346


		总文件数: 245	总行数: 11743
		========================================

```
4. Count files under the current directory with filter:
```
$ line -f .py -d
Search in /Users/macbook/Desktop/Examples4/

		========================================
		文件后缀名	文件数		总行数


		   .cpp		240		11346


		总文件数: 240	总行数: 11528
		========================================
$ line -d
Search in /Users/macbook/Desktop/Examples4/

		========================================
		文件后缀名	文件数		总行数


		   .py		5		397


		   .cpp		240		11346


		总文件数: 245	总行数: 11743
		========================================


```
scclient 0.3.4
A SocketCluster compatible WebSocket library
License: MIT
Keywords: socket cluster websocket socketcluster

# scclient
[![Build Status](https://travis-ci.org/Jnesselr/scclient.svg?branch=master)](https://travis-ci.org/Jnesselr/scclient)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/47d670393ce9420d94c2df0c405efa60)](https://www.codacy.com/app/Jnesselr/scclient?utm_source=github.com&utm_medium=referral&utm_content=Jnesselr/scclient&utm_campaign=Badge_Coverage)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/47d670393ce9420d94c2df0c405efa60)](https://www.codacy.com/app/Jnesselr/scclient?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Jnesselr/scclient&amp;utm_campaign=Badge_Grade)
[![PyPI version](https://badge.fury.io/py/scclient.svg)](https://badge.fury.io/py/scclient)

## About this library
scclient is a python [SocketCluster](https://socketcluster.io/) client implementation. It aims to be a level 4 implementation, according to the [client guidelines](https://github.com/SocketCluster/client-drivers). The protocol is at least partially documented [here](https://github.com/SocketCluster/socketcluster/blob/master/socketcluster-protocol.md) and any missing pieces were figured out by analyzing the [existing python library](https://github.com/sacOO7/socketcluster-client-python).

## Goals

*  Comprehensive unit testing
*  [PEP 8](https://www.python.org/dev/peps/pep-0008/) style
*  Full SocketCluster client implementation
*  Non-blocking event driven architecture