semvec/pypi-packages huggingface dataset:
segmlab 0.1.3
A lightweight SAM-based image segmentation labeling library
Requires Python: >=3.8

# SegLab ðŸ§ 

A simple Python library for performing segmentation labeling using **Segment Anything Model (SAM)** from Ultralytics.

---

## ðŸš€ Installation

```bash
git clone https://github.com/yourusername/SegLab.git
cd SegLab
pip install .
easymathlib 1.0.0
A simple Python math library with basic, advanced, and geometry operations.
Requires Python: >=3.7

# MyMathLib ðŸ§®
A simple math library for Python with basic, advanced, and geometry functions.

## ðŸ“¦ Installation
```bash
pip install mymathlib

 #USAGE

from mymathlib import BasicMath, AdvancedMath, Geometry

b = BasicMath()
print(b.add(5, 3))

a = AdvancedMath()
print(a.factorial(5))

g = Geometry()
print(g.area_circle(7))
runtime-serialization 0.0.0b1
Provides serialization to and from json, hjson, yaml and toml files.
Requires Python: >=3.10
Keywords: windows, linux, serialization

[![Test](https://github.com/apmadsen/runtime-serialization/actions/workflows/python-test.yml/badge.svg)](https://github.com/apmadsen/runtime-serialization/actions/workflows/python-test.yml)
[![Coverage](https://github.com/apmadsen/runtime-serialization/actions/workflows/python-test-coverage.yml/badge.svg)](https://github.com/apmadsen/runtime-serialization/actions/workflows/python-test-coverage.yml)
[![Stable Version](https://img.shields.io/pypi/v/runtime-serialization?label=stable&sort=semver&color=blue)](https://github.com/apmadsen/runtime-serialization/releases)
![Pre-release Version](https://img.shields.io/github/v/release/apmadsen/runtime-serialization?label=pre-release&include_prereleases&sort=semver&color=blue)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/runtime-serialization)
[![PyPI Downloads](https://static.pepy.tech/badge/runtime-serialization/week)](https://pepy.tech/projects/runtime-serialization)

# runtime-serialization

Provides serialization to and from json, hjson, yaml and toml files.

### Example

```python
from runtime.serialization.json import JsonSerializer, serialize, deserialize
from runtime.serialization import serializable
from datetime import date

@serializable(namespace="tests.examples")
class Author:
    def __init__(self, name: str, birthday: date):
        self.__name = name
        self.__birthday = birthday

    @property
    def name(self) -> str:
        return self.__name

    @property
    def birthday(self) -> date:
        return self.__birthday

@serializable(namespace="tests.examples")
class Book:
    def __init__(self, title: str, author: Author):
        self.__title = title
        self.__author = author

    @property
    def title(self) -> str:
        return self.__title

    @property
    def author(self) -> Author:
        return self.__author

author = Author("Stephen King", date(1947, 9, 21))
book = Book("The Shining", author)
serializer = JsonSerializer[Book]()
serialized = serializer.serialize(book) # -> {"author": {"birthday": "1947-09-21", "name": "Stephen King"}, "title": "The Shining"}
deserialized = serializer.deserialize(serialized)
assert deserialized.author.name == author.name
assert deserialized.title == book.title

# same result, different approach without the need for instantiating Serializer manually
serialized = serialize(book, Book)

# and without a base type, the type info is embedded
serialized_untyped = serialize(book) # -> {"author": {"birthday": "1947-09-21", "name": "Stephen King"}, "title": "The Shining", "~type": "tests.examples.Book"}
deserialized_untyped = deserialize(serialized_untyped)
assert deserialized_untyped.author.name == deserialized.author.name
assert deserialized_untyped.title == deserialized.title
```
## Full documentation

[Go to documentation](https://github.com/apmadsen/runtime-serialization/blob/main/docs/documentation.md)