semvec/pypi-packages huggingface dataset:
pyscreencap 0.8.0
A python based screen recorder - and for free!
License: MIT
Requires Python: >=3.8,<4.0

# PyScreenCap
A free screen recorder written with python. Sick of paywalled screen recording, overcomplicated setups etc.

## Running the Recorder

To run the recorder, run the following command:

```bash
python -m pyscreencap
```

Recorded files will be created the directory `pyscreencap-recordings` in your user profile.
metadocuments 1.4.1
Library for defining structured documents (JSON, YAML) as classes. Created as a metaprogramming exercise
License: MIT

# MetaDocuments

## Installation

`pip install metadocuments`

## Usage

Decorate the document with `@Metadocument` to specify that it (and all its children) should be treated
as a metadocument. This adds functions `to_dict`, `to_json`  and `to_yaml` to the class instance which
then can be called to create a corresponding structure. Classes can contain methods, but those are ignored
unless they are decorated with `@property`. Inheritance and multiple inheritance do work, the `@Metadocument`
decorator is only required for the parent class.

### Example

```python
@MetaDocument
class SubObject:
    a = 2
    b = "c"

@Metadocument
class MyClass:
    a = 1
    b = SubObject()

print(MyClass().to_json(indent=4))
# {
#     "a": 1,
#     "b": {
#         "a": 2,
#         "b": "c"
#     }
# }
```  

### Example 2

```python
@Metadocument
class MyClass:
    a = 1

class Child(MyClass):
    b = 2
    c = "c"

print(Child().to_json(indent=4))
# {
#     "a": 1,
#     "b": 2,
#     "c": "c"
# }
```  

### Example 3

Using `FromKeywords` helper class. This can be helpful when there are structures that one does not want
to define as class. All the keywords are mapped 1:1 to a attribute / key.

```python
if __name__ == "__main__":
    @Metadocument
    class Foobar():
        a = 1
        b = Field(key="v-1", value="somevalue")
        c = FromKeywords(
            d="a",
            e="b",
            f=FromKeywords(
                g=1,
                asd=FromKeywords(
                    a = "b"
                )
            )
        )
    print(Foobar().to_json(indent=4))
```

## Limitations

Because of Python syntax abuse, there is no support for numeric keys unfortunately. If those are necessity, then
old-school dicts are best option (for now).

`FromKeywords` does inherit `dict` so it is possible to use it inside a dictionary which then can be serialized to JSON.

```python
if __name__ == "__main__":
    @Metadocument
    class Foobar:
        a = 1
        b = 2
        c = FromKeywords(
            d="a",
            e="b",
            f=FromKeywords(
                g=1,
                asd=FromKeywords(
                    a = "b"
                )
            )
        )

    some_dict = {
        "foo": "bar",
        1: "asd",
        "afgg": FromKeywords(
            a=1, b=2
        ),
        "ccc": Foobar().to_dict()
    }
    print(Foobar().to_json(indent=4))
    print(json.dumps(some_dict))
```
senapy 0.3.2
Python client for senat.fr website
License: MIT
Keywords: scraping politics data

# senapy
[![Build Status](https://travis-ci.org/regardscitoyens/senapy.svg?branch=master)](https://travis-ci.org/regardscitoyens/senapy) [![Coverage Status](https://coveralls.io/repos/github/regardscitoyens/senapy/badge.svg?branch=master)](https://coveralls.io/github/regardscitoyens/senapy?branch=master)

A python client for [senat.fr](https://senat.fr) website.

## Main goal

Retrieve painlessly JSON data from [senat.fr](https://senat.fr).

## Requirements

Python 3

## Install:

- from pip: `pip3 install senapy`
- locally: `pip3 install -e .`

## Dossiers Legislatifs

 - Parse one: `senapy-cli parse URL_or_filepath`
    - example: `senapy-cli parse pjl16-537` (instead of the URL, you can just give the ID)
    - warning: for now the file must be in UTF-8
 - Get all the urls: `senapy-cli doslegs_urls`
 - Parse many: `cat urls | senapy-cli parse_many output_dir`

## Search services

 * **QuestionSearchService** to search for questions

## Tests:

- `pip3 install pytest`
- `pytest`
- If you modify the output, there's an utility to make the tests reflect that: `python tests/tools/regen_regressions_output.py`