semvec/pypi-packages huggingface dataset:
picomet 0.0.42
The nextjs of django
License: MIT
Requires Python: >=3.12
Keywords: picomet, django, nextjs

# Picomet

![PyPI - Python Versions](https://img.shields.io/pypi/pyversions/picomet)
![PyPI - Django Versions](https://img.shields.io/pypi/djversions/picomet)
[![PyPI - Version](https://img.shields.io/pypi/v/picomet)](https://pypi.org/project/picomet)
![PyPI - Downloads](https://img.shields.io/pypi/dw/picomet)
![GitHub](https://img.shields.io/github/license/picomet/picomet)
[![Discord](https://img.shields.io/badge/Discord-5865f2.svg?logo=discord&logoColor=white)](https://discord.gg/4byApQZg8X)

## Introduction

Picomet allows you to build Single Page Applications (SPAs) with Server-Side Rendering (SSR) capabilities, seamlessly integrated with Django. What sets this framework apart is its ability to update any specific part of a page by partially rendering it on the server and to render Alpinejs syntax on the server.

## Features

-   🏚️ Single page app
-   🔎 Partial rendering
-   🏯 Nested layout
-   ☎️ Server action
-   ⚡ Hot module reload
-   🌲 Alpinejs support
-   🖌️ Tailwind support
-   ✨ Copier starter

![Picomet](example.png)

## Installation

Get [uv](https://docs.astral.sh/uv) from **Astral**

```bash
uvx --with copier -p 3.12 picomet startproject my-project
```

## Getting Started

Go to [picomet.readthedocs.io](https://picomet.readthedocs.io) for getting started

> **Tip** : Picomet isn't stable at this moment. Stability is expected with the 1.0.0 release. Remember to update **picomet** from time to time, to get the latest features and bug fixes.

## Contribution Guideline

We welcome contributions from the community to enhance and improve the framework. If you'd like to contribute, please read [CONTRIBUTING.md](CONTRIBUTING.md).

## License

Picomet is licensed under the **MIT License**. Feel free to use it in your projects and make it even better!

## Support

If you have any questions, issues, or feature requests, please open an issue or create a discussion on GitHub. We appreciate your feedback!

Happy coding! 🚀
django-snapshot-field 0.1.5
A field in a model that store a snapshot of a model object and retrieves it as a read-only model object
License: MIT
Keywords: django

[![ci](https://github.com/Apkawa/django-snapshot-field/actions/workflows/ci.yml/badge.svg)](https://github.com/Apkawa/django-snapshot-field/actions/workflows/ci.yml)

[![PyPi](https://img.shields.io/pypi/v/django-snapshot-field.svg)](https://pypi.python.org/pypi/django-snapshot-field)
[![PyPI](https://img.shields.io/pypi/pyversions/django-snapshot-field.svg)](https://pypi.python.org/pypi/django-snapshot-field)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

A field in a model that stores a snapshot of a model object and retrieves it as a read-only model object

# Installation

```bash
pip install django-snapshot-field
```

or from git

```bash
pip install -e git+https://githib.com/Apkawa/django-snapshot-field.git#egg=django-snapshot-field
```

## Django and python version compatibles


| Python<br/>Django | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 | 3.13 |
|:-----------------:|-----|----|------|------|------|------|
|        4.2        | ✅   | ✅  | ✅    | ✅    | ✅    | ✅    |
|        5.0        | ❌   | ❌   | ✅    | ✅    | ✅    | ✅    |
|        5.1        | ❌   | ❌   | ✅    | ✅    | ✅    | ✅    |
|        5.2        | ❌   | ❌   | ✅    | ✅    | ✅    | ✅    |



# Usage

```python
from django.db import models
from snapshot_field.fields import SnapshotModelField

class Example(models.Model):
    name = models.CharField(max_length=20)

class ExampleReference(models.Model):
    name = models.CharField(max_length=20)
    ref = models.ForeignKey(Example)


class ExampleSnapshotModel(models.Model):
    snapshot = SnapshotModelField(null=True)
    snapshot_refs = SnapshotModelField(
        ['tests.Example', ['ExampleReference', {'fields': ['name', 'ref'], 'refs': ['ref']}]]
    )


obj = Example.objects.create(name='test_name')
obj_ref = ExampleReference.objects.create(name='refname', ref=obj)

snap = ExampleSnapshotModel.objects.create(snapshot=obj, snapshot_refs=obj_ref)

assert snap.snapshot.name == obj.name
assert snap.snapshot_refs.name == obj_ref.name
assert snap.snapshot_refs.ref.name == obj.name

obj.delete()
obj_ref.delete()
snap.refresh_from_db()

assert snap.snapshot.name == obj.name
assert snap.snapshot_refs.name == obj_ref.name
assert snap.snapshot_refs.ref.name == obj.name
```
pycounts_zuer 0.1.0
Calculate word counts in a text file!
License: MIT
Requires Python: >=3.11

# pycounts_zuer

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycounts_zuer
```

## Usage

- pycounts_zuer can be used to count words in a text file and plot results as follows:
```python
from pycounts_sw.pycounts_sw import count_words
from pycounts_sw.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```
## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`pycounts_zuer` was created by Zuer Zhong. It is licensed under the terms of the MIT license.

## Credits

`pycounts_zuer` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).