semvec/pypi-packages huggingface dataset:
armanc-toolkit 0.1.2
A comprehensive toolkit containing various utilities for Django and Python development
Requires Python: >=3.13
Keywords: django, inertia, toolkit, web-development

# Armanc Toolkit

A comprehensive toolkit containing various utilities for Django and Python development, with enhanced Inertia.js integration.

## Features

### Django Inertia Integration

Enhanced Inertia.js support for Django applications with:

- **InertiaResponse**: Advanced response handling with message support
- **View Mixins**: Complete set of class-based views for Inertia.js
  - `InertiaResponseMixin`: Base mixin for Inertia responses
  - `GenericView`: Base view with form handling
  - `TemplateView`: Simple template rendering
  - `FormView`: Form handling with validation
  - `ListView`: Model list views with pagination
  - `DetailView`: Single object detail views
  - `CreateView`: Object creation with forms
  - `UpdateView`: Object editing with forms
  - `DeleteView`: Object deletion with confirmation

## Installation

```bash
pip install armanc-toolkit
```

## Usage

### Django Settings

Add the Inertia app to your Django settings:

```python
INSTALLED_APPS = [
    # ... your other apps
    'armanc.django.inertia',
]
```

### Views

```python
from armanc.django.inertia.views import TemplateView, ListView, CreateView
from django.contrib.auth.models import User

class DashboardView(TemplateView):
    template_name = 'Dashboard'

class UserListView(ListView):
    model = User
    template_name = 'Users/Index'
    paginate_by = 10

class UserCreateView(CreateView):
    model = User
    template_name = 'Users/Create'
    fields = ['username', 'email', 'first_name', 'last_name']
```

### Response Handling

```python
from armanc.django.inertia.response import InertiaResponse

def my_view(request):
    return InertiaResponse(
        request,
        component='MyComponent',
        props={'data': 'example'}
    )
```

## Requirements

- Python >=3.13
- Django >=4.2,<6.0
- djantic2 >=1.0.5
- inertia-django >=1.2.0
- telepath >=0.3.1

## License

MIT License

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
sipmarray 1.2
A simple package to get the geometry of SiPM arrays.
Requires Python: >=3.7

# sipmarray

[![PyPI version shields.io](https://img.shields.io/pypi/v/sipmarray.svg)](https://pypi.org/project/sipmarray/) [![Static Badge](https://img.shields.io/badge/Docs-%235F9EA0)](https://ricmperes.github.io/sipmarray/)

> Ricardo Peres, 2023

This pakacge provides a quick and easy way to get the goemetry of circular SiPM arrays. It was developed to know how many SiPM would be required to fully instrument a [DARWIN](https://darwin.physik.uzh.ch/)- or [XLZD](https://xlzd.org/)-size detector.

More SiPM unit options coming soon!

## Instalation
```bash
pip install sipmarray
```

To install with an editable source:

```bash
git clone git@github.com:ricmperes/sipmarray.git
cd sipmarray 
pip install -e .
```

## Usage

In a jupyter notebook simply `import sipmarray`. Take a look at the [docs](https://ricmperes.github.io/sipmarray/) and example notebook (really, the package is pretty simple and self-explanatory).

The package can be used from the terminal (from anywhere woop woop!) to quickly get a plot or coordinate geometry of a sipmarray or sipmunit. Check the `sipmarray/Do the following for more info: 
  * `sipmarray --help`
  * `sipmunit --help`
dtools.circular-array 3.15.1
An indexable circular array data structure.
Requires Python: >=3.12
Keywords: circular array, dequeue, pop, push, indexable, auto resizing

# Developer Tools - Circular Array **DEPRICATED**

Please use PyPI project
[pythonic-fp-circularray](https://pypi.org/project/pythonic-fp-circulararray/)
instead.

Python package containing a module implementing a circular array data
structure, This project is part of the [Developer Tools for Python][4]
**dtools** namespace projects.

- **Repositories**
  - [dtools.circular-array][1] project on *PyPI*
  - [Source code][2] on *GitHub*
- **Detailed documentation**
  - [Detailed API documentation][3] on *GH-Pages*

## Overview

A full featured auto resizing circular array data structure. Double
sided, indexable, sliceable, and iterable. When iterated, uses cached
copies of its present state so that the circular array itself can safely
be mutated.

- O(1) amortized pushes and pops either end.
- O(1) indexing
- fully supports slicing
- safely mutates over previous state

Useful either if used directly like a Python list, or in a "has-a"
relationship when implementing other data structures.

- *module* dtools.circular_array
  - *class* `CA:` circular array data structure
    - initializer takes 1 or 0 iterators
      - like `list` or `set` does
  - *function* `ca`: produces a `CA` from the function's arguments
    - similar use case as syntactic constructs `[]` or `{}`

Above nomenclature modeled after builtin data types like `list`, where
`CA` and `ca` correspond respectfully to `list` and  `[]` in their use
cases.

#### Usage

```python
    from dtools.circular_array import CA, ca
    
    ca1 = ca(1, 2, 3)
    assert ca1.popl() == 1
    assert ca1.popr() == 3
    ca1.pushr(42, 0)
    ca1.pushl(0, 1)
    assert repr(ca1) == 'ca(1, 0, 2, 42, 0)'
    assert str(ca1) == '(|1, 0, 2, 42, 0|)'
    
    ca2 = CA(range(1,11))
    assert repr(ca2) == 'ca(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)'
    assert str(ca2) == '(|1, 2, 3, 4, 5, 6, 7, 8, 9, 10|)'
    assert len(ca2) == 10
    tup3 = ca2.poplt(3)
    tup4 = ca2.poprt(4)
    assert tup3 == (1, 2, 3)
    assert tup4 == (10, 9, 8, 7)
    assert ca2 == ca(4, 5, 6)
    four, *rest = ca2.poplt(1000)
    assert four == 4
    assert rest == [5, 6]
    assert len(ca2) == 0
    
    ca3 = CA([1, 2, 3])
    assert ca3.popld(42) == 1
    assert ca3.poprd(42) == 3
    assert ca3.popld(42) == 2
    assert ca3.poprd(42) == 42
    assert ca3.popld(42) == 42
    assert len(ca2) == 0
```

[1]: https://pypi.org/project/dtools.circular-array
[2]: https://github.com/grscheller/dtools-circular-array
[3]: https://grscheller.github.io/dtools-namespace-projects/circular-array
[4]: https://github.com/grscheller/dtools-namespace-projects/blob/main/README.md