semvec/pypi-packages huggingface dataset:
django-power-cms 0.3.3
A power content management system based on django admin framework.
License: MIT
Keywords: django admin extentions,django power cms

# django-power-cms

A power content management system based on django admin framework.

## Install

```shell
pip install django-power-cms
```

## Release

### v0.3.3 2020/04/03

1. Fix django-changelist-toolbar-admin upgraded problem.
1. Fix fontawesome css missing problem in portlet registering.

### v0.3.2 2020/03/31

1. Add Widget type categorizing and sorting support.
1. Add site limit to page widget in page changeform.
1. Add CardsWidth support.
1. PageWidget's slot options dynamically changes with page's template value.
1. Change topbar brand style.

### v0.3.1 2020/03/22

1. Site use a tabbed changeform.
1. Widget use a tabbed changeform.
1. Article use a tabbed changeform.
1. Set Page's site field to current selected site.
1. Set Widget's site field to current selected site.
1. Set Article's site field to current selected site.
1. Limit Page queryset to current selected site.
1. Limit Widget queryset to current selected site.
1. Limit Article queryset to current selected site.
1. Add template preview images.
1. Command django-power-cms-template add register-all sub-command.
1. Command django-power-cms-theme add register-all sub-command.
1. Add page's parent filed limit choice to current selected site.
1. Add article's parent field limit choice to current selected site.
1. Add preview link in site changelist card.
1. Fix requirements.txt missing libraries problem.

### v0.3.0 2020/03/21

1. Add no-portlet template.
1. Add site's facicon.
1. Add page title.
1. Add article detail widget.
1. Article model add site field.
1. Save current site id in session, and pages/wigets/articles are filtered with the site id.
1. Fix topbar's brand-image and brand-title display position problem.
1. Default template use full screen size instead of 1170px width.
1. Topbar brand link supports site-code-url and page-code-url.

### v0.2.0 2020/03/08

1. Add left-portlet, both-portlet template support.
1. Add template and theme register commands.
1. Add page preview button.
1. Allow same page code in different site.
1. Turn site admin style to django-cards-admin.

### v0.1.0 2020/03/05

1. First release.
argcomb 1.0.1
A simple library for building command-line arguments
License: MIT
Requires Python: >=3.6
Keywords: command-line

# Quickstart

argcomb (argument combiner) is a simple utility that allows you to build
complex command-line arguments in a modular fashion.

To install it:

    pip install argcomb

Suppose we want to run the following combination of commands (e.g., if you're
doing a hyperparameter sweep):

    echo train --eta 0.1 --num-iters 5 --greedy
    echo train --eta 0.1 --num-iters 5
    echo train --eta 0.1 --num-iters 10 --greedy
    echo train --eta 0.1 --num-iters 10

You can write the following `argcomb` program (called `example1.py` in this repo):

    from argcomb import *

    run(
        "echo", "train",
        arg("eta", 0.1),
        selarg(None, "num-iters", 5, 10),
        sel(None, [], arg("greedy")),
    )

Here `run` takes a (hierarchical) list of arguments to be concatenated.
Special functions like `sel` allow us to specify the selection/iteration over
multiple possible values in place (as opposed to having a big for loop on the
outside).

To run it:

    # Actually executes the commands
    python example1.py

    # Print out the commands rather than execute them
    python example1.py -n

We can also use environment variables (e.g., `@mode`) to parametrize the runs.
For example:

    from argcomb import *

    run(
        "echo", "train",
        let_if_undefined("@mode", "slow"),  # Set default
        sel("@mode", {
            "fast": [arg("num-iters", 5), arg("greedy")],
            "slow": arg("num-iters", 10),
        }),
        arg("output", fmt("@mode.out")),
    )

To run it:

    python example.py             # slow (default)
    python example.py @mode=fast  # fast

# Development

Handy commands:

    # Install environment
    virtualenv -p python3.7 venv
    venv/bin/pip install -r requirements.txt

    # Format code (skip `example*.py`)
    venv/bin/black -t py37 argcomb test_argcomb.py

    # Do type checking
    venv/bin/python -m mypy argcomb test_argcomb.py example*.py

    # Run unit tests
    venv/bin/python -m pytest test_argcomb.py

    # Build PyPI package and deploy it
    venv/bin/python setup.py sdist
    venv/bin/twine upload dist/*