semvec/pypi-packages huggingface dataset:
vakantie 0.1
A Package to get all holidays starting from 2015

This is a package for fetching holiday information of any country. This library can be used to get all the holidays of a
country. Even if a holiday is not pre-declared, one will still get the data for that holiday of any year.

### How to

```
import vakantie
holidays = vakantie.Holidays()
print(holidays.get_holidays(years=2021, country='Bangladesh'))
```

### Installation

```pip install vakantie```

### requirements

- lxml

### Available Years

Any year from 2015 upto now is available.

### Parameters of the class 'Holidays':
**output_type:** Currently, one can output the holidays in two ways - `csv` and `holiday_api`.

### Parameters of the 'get_holidays' method
**years:** This can take multiple years separated by comma(,).
**country:** Corrently it takes only a single year.

### Future plan
- Saving module
- Holidays for the states of the countries like the USA
- More output options

### Author
Labiba Kanij Rupty(labibakanij@gmail.com)


Change Log
==========
0.0.1 (29.06.2021)
-----------
first release
==========
0.0.2 (29.06.2021)
-----------
second release
==========
0.0.3 (29.06.2021)
-----------
second release
==========
0.0.4 (09.07.2021)
aws-mfa-plugin 0.0.4
An awscli plugin to authenticate and retrive AWS temporary credentials using a MFA device
Requires Python: >=3.6, <4
Keywords: aws,aws-mfa,aws-cli,aws-cli-plugins,aws-mfa-plugin

# AWS MFA Plugin

An awscli plugin to authenticate and retrive AWS temporary credentials using a MFA device.

## Installation

This plugin was published in [pypi.org](https://pypi.org/project/aws-mfa-plugin/). So the installation can be done using pip.

```shell
$ pip3 install --user aws-mfa-plugin
```

> *NOTE: We recommend installing inside user-site*


### Configure the plugin

If you are using awscli v1 configuring plugin is pretty simple.

```shell
$ aws configure set plugins.mfa aws-mfa
```

Otherwise, If you are using awscli v2, there is a need for additional config. [see](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-profile-plugins) for more details.

```shell
$ aws configure set plugins.cli_legacy_plugin_path $(python3 -m site --user-site)
```

> *Assumed the plugin installed inside user-site* 

### Verify plugin installation

If you configure correctly the plugin will become a subcommand of `aws` command.

```shell
$ aws mfa
```

## Getting Started

Before using this plugin to retrieve temporary credentials you need to configure mfa_serial device.

```shell
$ aws configure set mfa_serial <your-mfa-serial-device>
```

To retrive temporary credentials

```shell
$ aws mfa cred-env
MFA Token for (arn:aws:iam::1234567890:mfa/username): 123456
export AWS_ACCESS_KEY_ID=<access-key-id>
export AWS_SECRET_ACCESS_KEY=<access-secret-key>
export AWS_SESSION_TOKEN=<token>
```

Or you can directly set these temporary credentials as environment variable by using `eval` command

```shell
$ eval $(aws mfa cred-env)
MFA Token for (arn:aws:iam::1234567890:mfa/username): 123456
```

## License

This project licensed under MIT LICENSE, see [LICENSE](https://github.com/prksu/aws-mfa-plugin/blob/main/LICENSE).
jaxnuts 0.0.1
Python implementation of the No-U-Turn Sampler
Requires Python: >=3.8

# jaxnuts
Python implementation of the No-U-Turn Sampler from [Hoffman and Gelman](https://arxiv.org/pdf/1111.4246.pdf) (Algorithm 6) leveraging JAX.

## Usage

Import libraries
```python
import jax
import jax.numpy as jnp
import jax.random as random

from jaxnuts.sampler import NUTS
```

For low dimensional problems such as this simple example, force JAX to use the CPU (avoid GPU overhead)
```python
jax.config.update('jax_platform_name', 'cpu')
```

Define a log-probability to sample from
```python
def logprob(x):
  """Standard normal"""
  return -.5 * jnp.dot(x, x)
```

Generate samples
```python
key = random.PRNGkey(0)
sampler = NUTS(jnp.ones(2), logp=logprob, target_acceptance=.5, M_adapt=1000)
key, samples, step_size = sampler.sample(1000, key)
```