semvec/pypi-packages huggingface dataset:
uwgs 0.2.0
Flexible http client for reading UW Groups API v3.

# uwgs [![Build Status](https://travis-ci.com/uwrit/uwgs.svg?branch=master)](https://travis-ci.com/uwrit/uwgs)
Python3 Client Library for UW Groups API v3

### Functionality
At the moment, this library provides read-only functionality for:
- [Get Group By Id](https://iam-tools.u.washington.edu/apis/gws/#/Groups/getGroup)
- [All Read Membership Endpoints (except history)](https://iam-tools.u.washington.edu/apis/gws/#/Membership)
- [Search](https://iam-tools.u.washington.edu/apis/gws/#/Searches/get_search)

```python
import uwgs
from collections import namedtuple
import os
import json

Config = namedtuple('Config', ['client_cert', 'client_key', 'url'])

def load_config():
    cwd = os.path.dirname(os.path.abspath(__file__))
    fp = os.path.join(cwd, 'uwgs.json')
    with open(fp, 'r') as f:
        data = json.load(f)
        cfg = Config(data['client_cert'], data['client_key'], data['url'])
        return cfg


def cli():
    cfg = load_config()
    client = uwgs.Client(cfg.client_cert, cfg.client_key, cfg.url)

    payload = client.search(name='<group_prefix>*')
    if payload.ok:
        groups = [group['id'] for group in payload.data['data']]
        rosters = client.get_memberships(groups)
        print(rosters)

if __name__ == "__main__":
    cli()
```
django-subdomain-instances 3.0.2
A way of allowing subdomains to be served by the same project, and associating objects with particular subdomains.

Instances
=========

A simple way of allowing subdomains to be served by the same project, and
associating objects with particular subdomains.

Installation
------------

1. By default, it will work if you use 127.0.0.1.nip.io (a domain that points
   to localhost) on port 80. To use a different base domain/port, set the
   `BASE_HOST` and/or `BASE_PORT` variables.

2. Add `instances` to your `INSTALLED_APPS` and migrate to get the Instance
   database table.

3. Add Instance objects, with the label being the subdomain you wish to use.
   Optionally, associate users with these instances.

4. Add `instances.middleware.MultiInstanceMiddleware` to your middleware; it
   must come after AuthenticationMiddleware. Now
   if you go to `<subdomain>.<BASE_HOST>`, request.instance will be set to the
   matching Instance object. If there's a subdomain given but no match, it will
   redirect to `BASE_HOST`.

Requests to a subdomain will use your `ROOT_URLCONF` file; requests to the
`BASE_HOST` will use `ROOT_URLCONF_HOST` or `instances.urls` by default (which
just has one page that lists all instances)..

Instance edit form
------------------

In your ROOT_URLCONF, use a line like the following to have a page for editing
the title and description of an instance:

`url(r'^instance/edit$', InstanceUpdate.as_view(), name='instance-edit')`

Associating models
------------------

To have a model's objects be associated with an instance, mix in InstanceMixin,
and if you have a custom manager make it a subclass of InstanceManager. This
adds an `instance` field, and provides a `for_instance` manager method to
return all the objects in the given instance.

Mix in InstanceViewMixin to any display class-based view to restrict the
default queryset to the request's instance. Add InstanceFormMixin to any
create/update view to store the current instance upon save, and allow editing
only by those users associated with the instance. Remember to exclude
`instance` from any model form, as it won't be seen.

Running tests
-------------

.. code-block::

    pip install .
    python runtests.py
rstparse 1.0
expand and analyze RST (reStructureText) documents with auto*-directives

# rstparse Package

rstparse - expand and analyze RST (reStructureText) documents with auto*-directives

# DESCRIPTION

This manual page documents **rstparse**, a Python module for parsing RST
(reStructureText) documents.  

Many documents of Python and its standard libraries, as well as a vast number
of third party modules are written as RST (reStructureText) markup documents.
RST documents are easier to handle since, similarly to other markup document
formats such as Markdown, it is mostly a plain text file with several
additional notations.

Since RST documents are plain text files, you can easily browse those
documents using your favorite tools like pagers (e.g., `more`, `less`, and
`lv`) and also you can search for topics that you are interested in using
common tools such as `grep`.

However, a significant portion of RST files use *auto* directives (e.g.,
autosummary, automodule, autoclass, and autofunction), which ask the RST
parser to include the contents from somewhere outside the RST document.  For
instance, if an RST file contains a line,

```
.. autosummary: good_func
```

the description of `good_func` is not contained in this file.  `autosummary`
means the description must be inserted here.  It is an RST parser's
responsibility to identify where the description of `good_func` is stored.
**rstparse** module parses an RST file and expands all auto*-directives.

# EXAMPLE

```python
import rstparse

file = 'foo.rst'
rst = rstparse.Parser()
with open(file) as f:
    rst.read(f)
rst.parse()
for line in rst.lines:
	print(line)
```

# INSTALLATION

```python
pip3 install rstparser
```

# AVAILABILITY

The latest version of **rstparser** module is available at PyPI
(https://pypi.org/project/rstparser/) .

# SEE ALSO

- reStructuredText Markup Specification

  https://docutils.readthedocs.io/en/sphinx-docs/ref/rst/restructuredtext.html

- reStructuredText Directives

  https://docutils.readthedocs.io/en/sphinx-docs/ref/rst/directives.html

# AUTHOR

Hiroyuki Ohsaki <ohsaki[atmark]lsnl.jp>
bamboo-ipa-sync 3.1.0
Tool to synchronise FreeIPA with BambooHR
Keywords: python template

bamboo_ipa_sync
===============

Tool to synchronise FreeIPA with BambooHR

PyPI package:
`bamboo_ipa_sync <https://pypi.python.org/pypi/bamboo_ipa_sync>`__

If you spot any problems or have any improvement ideas then feel free to
open an issue and I will be glad to look into it for you.

Installation
------------

A recommended way of installing the tool is pip install.

Once installed, a command line tool ``bamboo_ipa_sync`` should be
available in your system's PATH.

pip install
~~~~~~~~~~~

The tool is available in PyPI and can be installed using pip:

::

   $ pip install --user bamboo_ipa_sync
   $ bamboo_ipa_sync --help

Configuration
-------------

Edit and save the sample config file ``SAMPLE_CONFIG`` as
``~/.config/bamboo_ipa_sync``.

The tool uses ``ppmail`` module for sending Email/Slack notifications,
please check `ppmail home page <https://github.com/peterpakos/ppmail>`__
for more information on how to configure it.

Usage
-----

::

   $ bamboo_ipa_sync --help
   usage: bamboo_ipa_sync [--version] [-l] [-b] [-s] [-n] [-f [UID [UID ...]]]
                          [-N] [--help] [--debug] [--quiet]

   Tool to synchronise FreeIPA with Bamboo HR

   optional arguments:
     --version             show program's version number and exit
     -l, --ldap            print LDAP data and exit
     -b, --bamboo          print Bamboo data and exit
     -s, --sync            synchronise LDAP with Bamboo
     -n, --notification    send New Starter Notification (requires -s)
     -f [UID [UID ...]], --force [UID [UID ...]]
                           force changes for given UIDs (or all if none provided)
     -N, --noop            dry-run mode
     --help                show this help message and exit
     --debug               debugging mode
     --quiet               no console output