semvec/pypi-packages huggingface dataset:
anyjson2csv 0.0.4
JSON flatten for Python
License: MIT
Requires Python: >=3.7

See the source for this project here: https://github.com/mehdiabidi/json2csv"

(Example)

from anyjson2csv.json_to_csv import convert_json_to_csv
import json

with open("listing_data_sampled.json", "r") as f:
    json_data = json.load(f)

convert_json_to_csv(json_data, "test.csv")
timespan 0.2.0
Utilities for Asterisk and Microsoft .Net timespans
License: MIT
Requires Python: >=2.7

# timespan

Utilities for working with popular timespan formats.

## .Net Timespans

Functions are provided for converting between .NET 7.0 TimeSpan objects
(with format specifiers) and Python's `datetime.timedelta` objects.

### `timespan.from_string(str) -> timedelta`

Converts a TimeSpan string in the current locale to a
`datetime.timedelta` object, e.g.

    >>> import timespan
    >>> timespan.c(3, 17, 25, 30, 500)
    '3.17:25:30.5000000'
    >>> timespan.from_string('3.17:25:30.5000000')
    datetime.timedelta(days=3, seconds=62730, microseconds=500000)

#### Parameters

- `timespan_string`: TimeSpan string of any format and locale.

#### Return Value

A timedelta object.

### `timespan.to_string(specifier: str, *args: tuple) -> str`

Converts date\time information (variable-length tuple) to a TimeSpan
string in the current locale.

#### Parameters

- `specifier`: format specifier. Options are 'c', 'g' and 'G'.
- `args`: variable-length tuple (size 1, 3, 4 or 5) specifying
  components of date and time.

#### Return Value

A TimeSpan string

### Notes

See the switch case of `_args_to_seconds()` in
[src/timespan/dotnet.py](src/timespan/dotnet.py) for full coverage of
all input types.

## Asterisk Timespans

Asterisk style timespans allow you to check if a timestamp falls within
a specified list of boundaries. For example, you might want to program
your phone system to only accept calls Mon-Fri from 9 a.m. to 5 p.m.
except on holidays like Christmas.

Timespans are specified in the form of `times|daysofweek|days|months`.
If your timespan starts with `!`, it'll only match if the timestamps
falls outside the given range.

Basic example:

    import timespan
    from datetime import datetime

    business_hours = [
        '9:00-17:00|mon-fri|*|*',  # is between 9 a.m. to 5 p.m. on Mon to Fri
        '!*|*|1|jan',              # not new years
        '!*|*|25|dec',             # not christmas
        '!*|thu|22-28|nov',        # not thanksgiving
    ]

    if timespan.match(business_hours, datetime.now()):
        print "we're open for business!"
    else:
        print "sorry, we're closed :("

For more examples, see the documentation or source code.
pwed-cdk 0.0.68
A library of AWS CDK constructs that I have created
License: MIT
Requires Python: ~=3.7

# pwed-cdk

[![release](https://github.com/pwed/pwed-cdk/actions/workflows/release.yml/badge.svg)](https://github.com/pwed/pwed-cdk/actions/workflows/release.yml)
![npm](https://img.shields.io/npm/v/pwed-cdk?color=%2368A063)
![PyPI](https://img.shields.io/pypi/v/pwed-cdk?color=%23306998)

A library of AWS CDK constructs that I have made for fun.

[Docs](/API.md)

## Disclaimer

This repository is in early development and can be restructured at any time.
A much higher level of stability will be targeted after 1.0.0 release

## Install

```sh
## Node
npm i pwed-cdk

## Python
pip install pwed-cdk
```

## Constructs

1. static-site

   1. Is a simple static site that will automatically upload assets to s3 and serve them with CloudFront. Any pushed changed files will get invalidated from the CloudFront cache.
2. bastion

   1. windows-instance

      1. A windows instance that can be signed into using fleet manager for a zero surface area RDP bastion.
   2. permission-set

      1. AWS SSO permission set with the minimum permissions to give access to SSM and Fleet Manager
      2. Can be locked down with Tags if you want environment level access

## Coming soon

1. Non SSO based access for bastion
2. Hugo extension for static-site to auto build and deploy your static site