semvec/pypi-packages huggingface dataset:
batik 0.4.0
batik
License: MIT
Keywords: cli

Batik is a Python framework for simplifying dataflow programming.

It's basically a bunch of glue code for connecting steps in a data pipeline,
with support for stateful actors, multithreading, and model serving.

Hot-reload sort of works too, but I'm still ironing out the kinks.

I wrote Batik because I hated having to screw around with initializing threads, queues, 
handling IPC, and having to decipher just what a data science or signal processing 
pipeline was doing from a giant block of imperative code.

In Batik, you implement processing steps, or layers, on their own,
and stitch them together in batik.yaml, for an approach more resembling gnuradio or simulink without the gui. 


Terminology:

Manifest: The complete setup of what to run/serve. Read from batik.yaml.

Layer: A single processing step in a pipeline. Takes some data as a parameter, 
operates on it, and returns some data.

Endpoint: A sequence of one or more layers. Used as an api endpoint for model serving.
May be invoked dynamically from other layers to do things like fan-out based on value etc.

Actor: A stateful class, initialized at runtime. The methods of the class may be 
used as layers or daemons.

Daemon: A generator function that runs at startup. Each generated value is passed to a 
specified endpoint, possibly through some layers.

See examples for more.

Batik is kind of a mess at the moment. If you want to contribute, I'll buy you a beer.
apimodels 0.0.1
Models for modern JSON APIs.
License: MIT
Requires Python: >=3.8

# APIModel

[![Downloads](https://pepy.tech/badge/apimodels)](https://pepy.tech/project/apimodels)
[![PyPI package](https://img.shields.io/pypi/v/apimodels)](https://pypi.org/project/apimodels/)
[![Last Commit](https://img.shields.io/github/last-commit/thesadru/apimodel)](https://github.com/thesadru/apimodel/commits/master)
[![Coverage](https://img.shields.io/codeclimate/coverage/thesadru/apimodel)](https://codeclimate.com/github/thesadru/apimodel)
[![Documentation](https://readthedocs.org/projects/apimodel/badge)](https://apimodel.readthedocs.io/en/latest)

Advanced models for non-standard modern JSON APIs.

---

Documentation: <https://apimodel.readthedocs.io/en/latest/>

Source Code: <https://github.com/thesadru/apimodel>

---

Advanced models for non-standard modern JSON APIs. Supports extensive conversion and validation with several tools to help speed up development.
Works with both synchronous and asynchronous models seamlessly.
Fully tested and type-hinted.

## Key Features

- Seamless data parsing through annotations.
- Supports extensive conversion and validation.
- Automatic code generation from json to speed up development.
- Inspired by pydantic to ensure familiarity.
- Localization support.
- Fully tested and type-hinted.
- No requirements.

## Example

You can see more examples in the docs.

```py
import typing

import datetime

import apimodel

class User(apimodel.APIModel):
    id: int
    username: str
    profile: str

    # UNIX or ISO parsing
    created_at: datetime.datetime

    @apimodel.validator()
    def _complete_profile_url(self, profile: str) -> str:
        """Take the raw profile ID and turn it into a full url"""
        return f"https://example.com/assets/profile/{profile}.png"

# inheritance
class Attendee(User):
    status: typing.Literal["attending", "interested", "absent"] | None = None

    @apimodel.root_validator()
    def _parse_status(self, values: dict[str, typing.Any]) -> dict[str, typing.Any]:
        """Take the entire JSON and update it accordingly"""
        # made for non-standard APIs
        if "attending" in values:
            values["status"] = "attending" if values["attending"] else "absent"
        elif "interested" in values:
            values["status"] = "interested" if values["interested"] else "absent"

        # excess values get thrown away
        return values

class Event(apimodel.APIModel):
    # allow easily renaming fields
    time: datetime.datetime = apimodel.Field(alias="happening_at")
    # clean nested models
    attendees: list[User]
```
swimlane-vsphere 0.0.5
Swimlane Vsphere
License: MIT
Requires Python: >=3.7,<4.0

# Swimlane Vsphere

[![PyPI](https://img.shields.io/pypi/v/swimlane-vsphere.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/swimlane-vsphere.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/swimlane-vsphere)][pypi status]
[![License](https://img.shields.io/pypi/l/swimlane-vsphere)][license]

[![Read the documentation at https://swimlane-vsphere.readthedocs.io/](https://img.shields.io/readthedocs/swimlane-vsphere/latest.svg?label=Read%20the%20Docs)][read the docs]
[![Tests](https://github.com/MSAdministrator/swimlane-vsphere/workflows/Tests/badge.svg)][tests]
[![Codecov](https://codecov.io/gh/MSAdministrator/swimlane-vsphere/branch/main/graph/badge.svg)][codecov]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

[pypi status]: https://pypi.org/project/swimlane-vsphere/
[read the docs]: https://swimlane-vsphere.readthedocs.io/
[tests]: https://github.com/MSAdministrator/swimlane-vsphere/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/MSAdministrator/swimlane-vsphere
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _Swimlane Vsphere_ via [pip] from [PyPI]:

```console
$ pip install swimlane-vsphere
```

## Usage

Please see the [Command-line Reference] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_Swimlane Vsphere_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.

[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[file an issue]: https://github.com/MSAdministrator/swimlane-vsphere/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/MSAdministrator/swimlane-vsphere/blob/main/LICENSE
[contributor guide]: https://github.com/MSAdministrator/swimlane-vsphere/blob/main/CONTRIBUTING.md
[command-line reference]: https://swimlane-vsphere.readthedocs.io/en/latest/usage.html