semvec/pypi-packages huggingface dataset:
ipyquery 0.0.6
Linq for python
Requires Python: >=3.6

# Linq for Python

[![Upload Python Package](https://github.com/immmdreza/ipyquery/actions/workflows/upload_pypi.yml/badge.svg)](https://github.com/immmdreza/ipyquery/actions/workflows/upload_pypi.yml)
[![pypi-badge]][pypi]
[![license-badge]](LICENSE)

[![Python application tests](https://github.com/immmdreza/ipyquery/actions/workflows/python-app.yml/badge.svg)](https://github.com/immmdreza/ipyquery/actions/workflows/python-app.yml)

## What's that

### _Simple `Language integrated query` for Python_

This package helps you write queries on Iterable objects in python

It makes it easy to deal with iterators.

## Why should i use this?

Well you should not! i mean you don't need such thing at all. python has already fully implemented methods for iterables, but if you used to `Linq` in `C#` ( like me ), you are probably want to use such package.

## How to?

### Well it's super easy

Let's take a look at the examples

```py
from ipyquery import Linq

my_list = Linq([5, 1, 7, 2, 3, 10, 1, 4, 5])

powered_cleaned = my_list.distinct().where(
    lambda x: x <= 5).orderby().select(lambda x: x**2).tolist()

print(powered_cleaned)

# [1, 4, 9, 16, 25]
```

You can use methods to do whatever you want with your list just that easy!

## More Examples?

Take a look at [tests](tests/test_linq.py) folder ( There are a lot to explore )

## Currently available methods

> Below you can see all currently available methods, all of these can be used on `Linq` object ( which contains your list )

- `select`
- `select_many`
- `enum_select`
- `tolist`
- `todict`
- `groupby`
- `where`
- `first`
- `first_or_default`
- `any`
- `all`
- `orderby`
- `orderby_desc`
- `max`
- `min`
- `sum`
- `average`
- `distinct`
- `single`
- `single_or_default`
- `add`
- `reverse`
- `remove`
- `remove_all`
- `take` (_new_)
- `skip` (_new_)

_Don't worry will add more methods._

[pypi]: https://pypi.org/project/ipyquery/
[pypi-badge]: https://badge.fury.io/py/ipyquery.svg
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
demotestacmeclient 0.0.3
Ottr ACME Client Python Wrapper
Requires Python: >=3

## Ottr ACME Client

`ottr-acme` is a Python wrapper around `acme.sh` that handles the certificate
signing process for Certificate Authorities that support the ACME protocol. This
package is utilized when building a container on top of the Airbnb Ottr Core
Platform.

```py
# Query Subject Alternative Names
dynamodb = boto3.resource('dynamodb', region_name=region_name)
table = dynamodb.Table(dynamodb_table)
subject_alternative_names = ottr.query_subject_alternative_names(hostname=hostname, table=table)

# ACME Client
le_client = ottr.LetsEncrypt(hostname=hostname, subdelegate=dns,
subject_alternative_names=subject_alternative_names, region=region_name)

# Local Development
le_client.acme_local(csr={csr_path})

# Container Development
le_client.acme_development(csr={csr_path})

# Container Production
le_client.acme_production(csr={csr_path})

# Query Certificate from Device
expiration = ottr.query_certificate_expiration(hostname=hostname)

# Update Expiration
ottr.update_certificate_expiration(expiration)
```