semvec/pypi-packages huggingface dataset:
with-contextvars 0.1.2
Context manager for setting contextvars variables
License: MIT
Requires Python: >=3.7,<4.0

with-contextvars
================

This module provides ``Set``, a context manager which sets one or more ``contextvars``
variables upon activation and resets them to their previous values at exit.

Usage::

    import contextvars, with_contextvars
    A = contextvars.ContextVar("A")
    B = contextvars.ContextVar("B")
    A.set("Hello,")
    B.set("world!")
    print(A.get(), B.get())
    # prints: Hello, world!
    with with_contextvars.Set((A, "other"), (B, "value")):
        print(A.get(), B.get())
        # prints: other value
    print(A.get(), B.get())
    # prints: Hello, world!

Even the entirety of variable assignments of a ``contextvars.Context`` object
(as obtained from ``contextvars.copy_context()``) can be activated by initializing
``Set`` with its items::

    with with_contextvars.Set(*context.items()):
        ...

However, using ``contextvars.Context.run()`` is more efficient and should be preferred
where possible.

More information can be found in the documentation of ``Set``.
mkdocs-conia 0.1.12
Default mkdocs theme for Conia projects
License: MIT

MkDocs Conia Theme
==================

This is a theme for MkDocs which is mainly used in [Conia](https://conia.dev) projects 

## Installation

Install the package from PyPi using `pip`:

    pip install mkdocs-conia

Add the theme to your `mkdocs.yml` file:

    theme:
        name: conia

## Development server

    mkdocs serve -w theme   

## Styles

Install Dart Sass via `npm install -g sass`. During develompment:

    sass --watch styles:theme

## Deploy to PyPi

Install `twine` if not already done. Bump version number in `setup.py`, then:

    git tag -a vX.X.X -m "Version X.X.X"
    git push origin vX.X.X
    sass --style=compressed --no-source-map styles:theme
    python setup.py bdist_wheel
    twine upload dist/*