chellow


Namechellow JSON
Version 2468 PyPI version JSON
download
home_pagehttps://github.com/WessexWater/chellow
SummaryWeb Application for checking UK utility bills.
upload_time2021-05-06 13:55:13
maintainer
docs_urlNone
authorTony Locke
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Chellow

A web application for checking UK electricity bills for organizations with
a large number of supplies and / or high consumption.

Website: https://www.chellow.org/


## Licence

Chellow is released under the [GPL v3](http://www.gnu.org/licenses/gpl.html).


## Introduction

Chellow is a web application for checking UK electricity bills. It's designed
for organizations with high electricity consumption. The software is hosted at
https://github.com/WessexWater/chellow.

[![Build Status](https://travis-ci.org/WessexWater/chellow.svg?branch=master)](https://travis-ci.org/WessexWater/chellow)


## Installation

Chellow is a Python web application (with a built-in webserver) that uses the
PostgreSQL database. To install Chellow, follow these steps:

* Install [PostgreSQL](http://www.postgresql.org/) 12
* Install Python 3.6 (tested on the [CPython 3.6.8](http://www.python.org/)
   interpreter)
* Create a PostgreSQL database: `createdb --encoding=UTF8 chellow`
* Install Chellow: `pip install chellow`
* Set up the following environment variables to configure Chellow:

| Name | Default | Description 
| ---- | ------- | -----------
| `PGUSER` | `postgres` | Postgres user name
| `PGPASSWORD` | `postgres` | Postgres password
| `PGHOST` | `localhost` | Postgres host name
| `PGPORT` | `5432` | Postgres port
| `PGDATABASE` | `chellow` | Postgres database name
| `CHELLOW_PORT` | `80` | Port that the Chellow webserver will listen on

In bash an environment variable can be set by doing:

`export CHELLOW_PORT=8080`

in Windows an environment variable can be set by doing:

`set CHELLOW_PORT=8080`

* Start Chellow by running `chellow start`.
* You should now be able to visit `http://localhost/` in a browser. You should
  be prompted to enter a username and password. Enter the admin user name
  `admin@example.com` and the password `admin`, and then the home page should
  appear. Change the admin password from the `users` page.
* Chellow can be stopped by running `chellow stop`.


### Manual Upgrading

To upgrade to the latest version of Chellow do: `pip install --upgrade chellow`


### Automatic Upgrading

On Unix, set up a cron job to regularly call the updater script by doing:

`crontab -e`

and entering the line:

`\* * * * * source /home/me/venv/bin/activate;chellow_updater.sh`


### Using A Different Webserver

Chellow comes bundled with the
[Waitress](http://docs.pylonsproject.org/projects/waitress/en/latest/)
webserver, but the is also a Python WSGI web application so Chellow can be used
with any WSGI compliant application server, eg Gunicorn. The WSGI app that
should be specified is `chellow.app`.


### Detailed Instructions For Installing On CentOS 6.7 64 bit For Development

Install PostgreSQL 9.5.2

Add the PostgreSQL repository:

`sudo rpm -ivh https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-centos95-9.5-2.noarch.rpm`

Install the PostgreSQL packages:

`sudo yum install postgresql95 postgresql95-server postgresql95-contrib`

Initialize the database:

`sudo service postgresql-9.5 initdb`

Make PostgreSQL start on boot:

`sudo chkconfig postgresql-9.5 on`

Edit PostgreSQL config file to accept all local connections:

`sudo vi /var/lib/pgsql/9.5/data/pg_hba.conf`

Find the lines:

`local   all    all                    peer`
`host    all    all    127.0.0.1/32    peer`

and change them to:

`local   all    all                    trust`
`host    all    all    127.0.0.1/32    trust`

start PostgreSQL:

`sudo service postgresql-9.5 start`

Install Python 3.5.1. Unfortunately there isn't an rpm for this so we have to
compile it:

`sudo yum groupinstall "Development tools"`
`sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel wget`
`wget http://python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz`
`tar xf Python-3.5.1.tar.xz`
`cd Python-3.5.1`
`./configure --prefix=/usr/local --enable-shared LDFLAGS="Wl,-rpath /usr/local/lib"`
`make`
`sudo make altinstall`

We need to tell Chellow which port to listen on, so:

`vi ~/.bashrc`

and add the line:

`export CHELLOW_PORT=8080`
`export PGUSER=postgres`

Clone the Chellow source from GitHub:

`git clone https://github.com/WessexWater/chellow.git`

Change directory to the 'chellow' directory:

`cd chellow`

Create a local `test` branch to track the remote `origin/test` branch:

`git branch --track test origin/test`

Check out the 'test' branch into the working directory:

`git checkout test`

Create a Python virtual environment:

`pyvenv-3.5 venv`

Activate the environment:

`source venv/bin/activate`

Make sure you're running a recent version of pip:

`pip install --upgrade pip`

Install tox:

`pip install tox`


Run tests:

`tox`

Old style tests: run\_tests\_0.sh run\_tests\_1.sh run\_tests\_2.sh


##  Getting Started

This is a brief guide to setting things up after you've installed Chellow. It
assumes that you have a basic knowledge of
[UK electricity billing](https://en.wikipedia.org/wiki/Electricity_billing_in_the_UK). It goes through the steps of adding a half-hourly (HH) metered supply,
and producing virtual bills for it, and then importing an actual bill and
running a bill check.

Chellow can handle non-half-hourly supplies as well as half-hourly, and it can
also deal with gas supplies, but we'll use a half-hourly electricity supply for
this example.


### View the Chellow home page

Assuming you've installed Chellow correctly, you should be able to open your
browser, type in the URL of the Chellow application, and see the Chellow home
page.


### Users

Before any users are added, if you access Chellow from `localhost` you'll have
read / write access. Once users are added, you have to log in as one of those
users. Users are added from the 'users' page.


### Add HHDC Contracts

Every supply must a have a data collector. Add in a new HHDC by going to the
'HHDC Contracts' page and then clicking on the 'Add' link. 


### Add MOP Contracts

Every supply must a have a meter operator. Add in a new MOP by going to the
'MOP Contracts' page and then clicking on the 'Add' link. For now just put in a
simple virtual bill for the MOP, so in the 'script' field enter:

```
    from chellow.utils import reduce_bill_hhs


    def virtual_bill_titles():
        return ['net-gbp']    


    def virtual_bill(data_source):
        for hh in data_source.hh_data:
						bill_hh = data_source.mop_bill_hhs[hh['start-date']]
            if hh['utc-is-month-end']:
                bill_hh['net-gbp'] = 10
        data_source.mop_bill = reduce_bills_hh(data_source.mop_bill_hhs)
```


### Add Supplier Contracts

Click on the 'supplier contracts' link and then fill out the 'Add a contract'
form. For the Charge Script field enter:

```
    from chellow.utils import reduce_bill_hhs

    def virtual_bill_titles():
        return ['net-gbp', 'day-kwh', 'day-gbp', 'night-kwh', 'night-gbp']    

    def virtual_bill(data_source):
        bill = data_source.supplier_bill 

        for hh in data_source.hh_data:
						bill_hh = data_source.supplier_bill_hhs[hh['start-date']]
            if 0 < hh['utc-decimal-hour'] < 8:
                bill_hh['night-kwh'] = hh['msp-kwh']
                bill_hh['night-gbp'] = hh['msp-kwh'] * 0.05
            else:
                bill_hh['day-kwh'] = hh['msp-kwh']
                bill_hh['day-gbp'] = hh['msp-kwh'] * 0.1

						bill_hh['net-gbp'] = sum(
								v for k, v in bill_hh.items() if k[-4:] == '-gbp')

				data_source.supplier_bill = reduce_bill_hhs(
						data_source.supplier_bill_hhs)
```

This will generate a simple virtual bill based on a day / night tariff.
Supplier contract scripts can be much more sophisticated than this, including
DUoS, TNUoS, BSUoS, RO and many other standard charges. These will be addressed
later on in this guide.

Also, don't worry about the 'properties' field for now.


### Add a Site

Go to the 'sites' link on the home page, and click 'add'. Fill out the form
and create the site.


### Add a Supply

To add a supply to a site, go to the site's page and click on 'edit'. Half-way
down the page there's an 'Insert an electricity supply' form. For a standard
electricity supply the 'source' is 'net'. Make sure the profile class (PC) is
'00' to indicate to Chellow that it's a half-hourly metered supply. The SSC
field is left blank for a half-hourly as they don't have an SSC.

A supply is formed from a series of eras. Each era has different
characteristics to capture the history of a supply.


### Run a Virtual Bill

At this stage it should be possible to run a virtual bill for the supply you've
added. Go to the supply's page and click on the 'Supplier Virtual Bill' link.
That should return a page showing the virtual bill for the supply.

Of course, the consumption will be zero because we haven't added in any
half-hourly data yet.


### Add Some HH Data

On the page of the supply you've created, you'll see that there's a 'channels'
link, with an 'add' link next to it. Add an active import channel for the
half-hourly data to be attached to.

Back on the supply page a link to the channel you just created will have
appeared. Click on this and fill out the form for adding a half-hour of data.

If you then re-run the virtual bill for the period in which you added the
half-hour, it should show up in the virtual bill.

It's tedious to add HH data one by one, so if you go to the page of the HHDC
contract that you've created, you'll see a 'HH Data Imports' link. Click on
this and there's a form for uploading HH data in bulk in a variety of formats.
Chellow can also be set up to import files automatically from an FTP server.


### Virtual Bills For A Contract

To see the virtual bills for a supplier contract, go to the contract page and
follow the Virtual Bills link.


###  Data Structure

  * Site
  * Supply
    * Supply Era
      * Site
      * MOP Contract
      * DC Contract
      * Profile Class
      * Imp / Exp Supplier Contract
      * Imp / Exp Mpan Core
      * Imp / Exp LLFC
      * Imp / Exp Supply Capacity
      * Imp / Exp Channels 
        * HH Data
  * Supplier Contracts (Same for DC and MOP) 
    * Rate Scripts
    * Batches 
      * Bills 
        * Supply
        * Register Reads
  * DNOs (Distribution Network Operators) 
    * LLFCs (Line Loss Factor Classes)


### General Imports

The menu has a link called 'General Import' which take you to a page for doing
bulk insert / update / delete operations on Chellow data (eg. Sites, Supplies,
LLFCs etc.) using a CSV file.


## Common Tasks

### Merging Two Supplies

Say there are two supplies A and B, and you want to end up with just A. The
steps are:

1. Back up the data by taking a snapshot of the database.
2. Check that A and B have the same header data (LLFC, MTC etc).
3. See if there are any overlapping channels, eg. do both A and B have import
   kVArh? If there are, then decide which one is going to be kept.
4. Load the hh data for the required channels from the backup file. First
   take a copy of the file, then edit out the data you don't want, then
   further edit the file so that it loads into the new supply.
5. Delete supply B.


### Local Reports

Core reports come with Chellow, but it's possible for users to create custom
reports. Reports are written in Python, and often use a Jinja2 template. You
can display a link to a report of user reports by adding the `local_reports_id`
to the `configuration` non-core contract.


#### Default users

Default users can be automatically assigned to requests from certain IP
addresses. To associate an IP address to a user, go to the non-core contract
`configuration` and add a line to the 'properties' field similar to the
following:

```
  {
    'ips': {'127.0.0.1': 'implicit-user@localhost'}
  }
```

Note that multiple IP addresses can be mapped to the same user.

It's also possible to use Microsoft Active Directory to authenticate users
with a reverse proxy server. Edit the `configuration` non-core contract and add
something like:

```
  {
    "ad_authentication": {
      "default_user": "readonly@example.com",
      "on": true
  }
```


## Design Decisions

Why don't you use the +/- infinity values for timestamps? The problem is that it's not clear how this would translate into Python. So we currently use null for infinity, which naturally translates into None in Python. 



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/WessexWater/chellow",
    "name": "chellow",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Tony Locke",
    "author_email": "tlocke@tlocke.org.uk",
    "download_url": "https://files.pythonhosted.org/packages/6f/74/ef767f9ebf49ab4fb050a2967504b06cf2539f730b1a65e62579edf4d128/chellow-2468.tar.gz",
    "platform": "",
    "description": "# Chellow\n\nA web application for checking UK electricity bills for organizations with\na large number of supplies and / or high consumption.\n\nWebsite: https://www.chellow.org/\n\n\n## Licence\n\nChellow is released under the [GPL v3](http://www.gnu.org/licenses/gpl.html).\n\n\n## Introduction\n\nChellow is a web application for checking UK electricity bills. It's designed\nfor organizations with high electricity consumption. The software is hosted at\nhttps://github.com/WessexWater/chellow.\n\n[![Build Status](https://travis-ci.org/WessexWater/chellow.svg?branch=master)](https://travis-ci.org/WessexWater/chellow)\n\n\n## Installation\n\nChellow is a Python web application (with a built-in webserver) that uses the\nPostgreSQL database. To install Chellow, follow these steps:\n\n* Install [PostgreSQL](http://www.postgresql.org/) 12\n* Install Python 3.6 (tested on the [CPython 3.6.8](http://www.python.org/)\n   interpreter)\n* Create a PostgreSQL database: `createdb --encoding=UTF8 chellow`\n* Install Chellow: `pip install chellow`\n* Set up the following environment variables to configure Chellow:\n\n| Name | Default | Description \n| ---- | ------- | -----------\n| `PGUSER` | `postgres` | Postgres user name\n| `PGPASSWORD` | `postgres` | Postgres password\n| `PGHOST` | `localhost` | Postgres host name\n| `PGPORT` | `5432` | Postgres port\n| `PGDATABASE` | `chellow` | Postgres database name\n| `CHELLOW_PORT` | `80` | Port that the Chellow webserver will listen on\n\nIn bash an environment variable can be set by doing:\n\n`export CHELLOW_PORT=8080`\n\nin Windows an environment variable can be set by doing:\n\n`set CHELLOW_PORT=8080`\n\n* Start Chellow by running `chellow start`.\n* You should now be able to visit `http://localhost/` in a browser. You should\n  be prompted to enter a username and password. Enter the admin user name\n  `admin@example.com` and the password `admin`, and then the home page should\n  appear. Change the admin password from the `users` page.\n* Chellow can be stopped by running `chellow stop`.\n\n\n### Manual Upgrading\n\nTo upgrade to the latest version of Chellow do: `pip install --upgrade chellow`\n\n\n### Automatic Upgrading\n\nOn Unix, set up a cron job to regularly call the updater script by doing:\n\n`crontab -e`\n\nand entering the line:\n\n`\\* * * * * source /home/me/venv/bin/activate;chellow_updater.sh`\n\n\n### Using A Different Webserver\n\nChellow comes bundled with the\n[Waitress](http://docs.pylonsproject.org/projects/waitress/en/latest/)\nwebserver, but the is also a Python WSGI web application so Chellow can be used\nwith any WSGI compliant application server, eg Gunicorn. The WSGI app that\nshould be specified is `chellow.app`.\n\n\n### Detailed Instructions For Installing On CentOS 6.7 64 bit For Development\n\nInstall PostgreSQL 9.5.2\n\nAdd the PostgreSQL repository:\n\n`sudo rpm -ivh https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-centos95-9.5-2.noarch.rpm`\n\nInstall the PostgreSQL packages:\n\n`sudo yum install postgresql95 postgresql95-server postgresql95-contrib`\n\nInitialize the database:\n\n`sudo service postgresql-9.5 initdb`\n\nMake PostgreSQL start on boot:\n\n`sudo chkconfig postgresql-9.5 on`\n\nEdit PostgreSQL config file to accept all local connections:\n\n`sudo vi /var/lib/pgsql/9.5/data/pg_hba.conf`\n\nFind the lines:\n\n`local   all    all                    peer`\n`host    all    all    127.0.0.1/32    peer`\n\nand change them to:\n\n`local   all    all                    trust`\n`host    all    all    127.0.0.1/32    trust`\n\nstart PostgreSQL:\n\n`sudo service postgresql-9.5 start`\n\nInstall Python 3.5.1. Unfortunately there isn't an rpm for this so we have to\ncompile it:\n\n`sudo yum groupinstall \"Development tools\"`\n`sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel wget`\n`wget http://python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz`\n`tar xf Python-3.5.1.tar.xz`\n`cd Python-3.5.1`\n`./configure --prefix=/usr/local --enable-shared LDFLAGS=\"Wl,-rpath /usr/local/lib\"`\n`make`\n`sudo make altinstall`\n\nWe need to tell Chellow which port to listen on, so:\n\n`vi ~/.bashrc`\n\nand add the line:\n\n`export CHELLOW_PORT=8080`\n`export PGUSER=postgres`\n\nClone the Chellow source from GitHub:\n\n`git clone https://github.com/WessexWater/chellow.git`\n\nChange directory to the 'chellow' directory:\n\n`cd chellow`\n\nCreate a local `test` branch to track the remote `origin/test` branch:\n\n`git branch --track test origin/test`\n\nCheck out the 'test' branch into the working directory:\n\n`git checkout test`\n\nCreate a Python virtual environment:\n\n`pyvenv-3.5 venv`\n\nActivate the environment:\n\n`source venv/bin/activate`\n\nMake sure you're running a recent version of pip:\n\n`pip install --upgrade pip`\n\nInstall tox:\n\n`pip install tox`\n\n\nRun tests:\n\n`tox`\n\nOld style tests: run\\_tests\\_0.sh run\\_tests\\_1.sh run\\_tests\\_2.sh\n\n\n##  Getting Started\n\nThis is a brief guide to setting things up after you've installed Chellow. It\nassumes that you have a basic knowledge of\n[UK electricity billing](https://en.wikipedia.org/wiki/Electricity_billing_in_the_UK). It goes through the steps of adding a half-hourly (HH) metered supply,\nand producing virtual bills for it, and then importing an actual bill and\nrunning a bill check.\n\nChellow can handle non-half-hourly supplies as well as half-hourly, and it can\nalso deal with gas supplies, but we'll use a half-hourly electricity supply for\nthis example.\n\n\n### View the Chellow home page\n\nAssuming you've installed Chellow correctly, you should be able to open your\nbrowser, type in the URL of the Chellow application, and see the Chellow home\npage.\n\n\n### Users\n\nBefore any users are added, if you access Chellow from `localhost` you'll have\nread / write access. Once users are added, you have to log in as one of those\nusers. Users are added from the 'users' page.\n\n\n### Add HHDC Contracts\n\nEvery supply must a have a data collector. Add in a new HHDC by going to the\n'HHDC Contracts' page and then clicking on the 'Add' link. \n\n\n### Add MOP Contracts\n\nEvery supply must a have a meter operator. Add in a new MOP by going to the\n'MOP Contracts' page and then clicking on the 'Add' link. For now just put in a\nsimple virtual bill for the MOP, so in the 'script' field enter:\n\n```\n    from chellow.utils import reduce_bill_hhs\n\n\n    def virtual_bill_titles():\n        return ['net-gbp']    \n\n\n    def virtual_bill(data_source):\n        for hh in data_source.hh_data:\n\t\t\t\t\t\tbill_hh = data_source.mop_bill_hhs[hh['start-date']]\n            if hh['utc-is-month-end']:\n                bill_hh['net-gbp'] = 10\n        data_source.mop_bill = reduce_bills_hh(data_source.mop_bill_hhs)\n```\n\n\n### Add Supplier Contracts\n\nClick on the 'supplier contracts' link and then fill out the 'Add a contract'\nform. For the Charge Script field enter:\n\n```\n    from chellow.utils import reduce_bill_hhs\n\n    def virtual_bill_titles():\n        return ['net-gbp', 'day-kwh', 'day-gbp', 'night-kwh', 'night-gbp']    \n\n    def virtual_bill(data_source):\n        bill = data_source.supplier_bill \n\n        for hh in data_source.hh_data:\n\t\t\t\t\t\tbill_hh = data_source.supplier_bill_hhs[hh['start-date']]\n            if 0 < hh['utc-decimal-hour'] < 8:\n                bill_hh['night-kwh'] = hh['msp-kwh']\n                bill_hh['night-gbp'] = hh['msp-kwh'] * 0.05\n            else:\n                bill_hh['day-kwh'] = hh['msp-kwh']\n                bill_hh['day-gbp'] = hh['msp-kwh'] * 0.1\n\n\t\t\t\t\t\tbill_hh['net-gbp'] = sum(\n\t\t\t\t\t\t\t\tv for k, v in bill_hh.items() if k[-4:] == '-gbp')\n\n\t\t\t\tdata_source.supplier_bill = reduce_bill_hhs(\n\t\t\t\t\t\tdata_source.supplier_bill_hhs)\n```\n\nThis will generate a simple virtual bill based on a day / night tariff.\nSupplier contract scripts can be much more sophisticated than this, including\nDUoS, TNUoS, BSUoS, RO and many other standard charges. These will be addressed\nlater on in this guide.\n\nAlso, don't worry about the 'properties' field for now.\n\n\n### Add a Site\n\nGo to the 'sites' link on the home page, and click 'add'. Fill out the form\nand create the site.\n\n\n### Add a Supply\n\nTo add a supply to a site, go to the site's page and click on 'edit'. Half-way\ndown the page there's an 'Insert an electricity supply' form. For a standard\nelectricity supply the 'source' is 'net'. Make sure the profile class (PC) is\n'00' to indicate to Chellow that it's a half-hourly metered supply. The SSC\nfield is left blank for a half-hourly as they don't have an SSC.\n\nA supply is formed from a series of eras. Each era has different\ncharacteristics to capture the history of a supply.\n\n\n### Run a Virtual Bill\n\nAt this stage it should be possible to run a virtual bill for the supply you've\nadded. Go to the supply's page and click on the 'Supplier Virtual Bill' link.\nThat should return a page showing the virtual bill for the supply.\n\nOf course, the consumption will be zero because we haven't added in any\nhalf-hourly data yet.\n\n\n### Add Some HH Data\n\nOn the page of the supply you've created, you'll see that there's a 'channels'\nlink, with an 'add' link next to it. Add an active import channel for the\nhalf-hourly data to be attached to.\n\nBack on the supply page a link to the channel you just created will have\nappeared. Click on this and fill out the form for adding a half-hour of data.\n\nIf you then re-run the virtual bill for the period in which you added the\nhalf-hour, it should show up in the virtual bill.\n\nIt's tedious to add HH data one by one, so if you go to the page of the HHDC\ncontract that you've created, you'll see a 'HH Data Imports' link. Click on\nthis and there's a form for uploading HH data in bulk in a variety of formats.\nChellow can also be set up to import files automatically from an FTP server.\n\n\n### Virtual Bills For A Contract\n\nTo see the virtual bills for a supplier contract, go to the contract page and\nfollow the Virtual Bills link.\n\n\n###  Data Structure\n\n  * Site\n  * Supply\n    * Supply Era\n      * Site\n      * MOP Contract\n      * DC Contract\n      * Profile Class\n      * Imp / Exp Supplier Contract\n      * Imp / Exp Mpan Core\n      * Imp / Exp LLFC\n      * Imp / Exp Supply Capacity\n      * Imp / Exp Channels \n        * HH Data\n  * Supplier Contracts (Same for DC and MOP) \n    * Rate Scripts\n    * Batches \n      * Bills \n        * Supply\n        * Register Reads\n  * DNOs (Distribution Network Operators) \n    * LLFCs (Line Loss Factor Classes)\n\n\n### General Imports\n\nThe menu has a link called 'General Import' which take you to a page for doing\nbulk insert / update / delete operations on Chellow data (eg. Sites, Supplies,\nLLFCs etc.) using a CSV file.\n\n\n## Common Tasks\n\n### Merging Two Supplies\n\nSay there are two supplies A and B, and you want to end up with just A. The\nsteps are:\n\n1. Back up the data by taking a snapshot of the database.\n2. Check that A and B have the same header data (LLFC, MTC etc).\n3. See if there are any overlapping channels, eg. do both A and B have import\n   kVArh? If there are, then decide which one is going to be kept.\n4. Load the hh data for the required channels from the backup file. First\n   take a copy of the file, then edit out the data you don't want, then\n   further edit the file so that it loads into the new supply.\n5. Delete supply B.\n\n\n### Local Reports\n\nCore reports come with Chellow, but it's possible for users to create custom\nreports. Reports are written in Python, and often use a Jinja2 template. You\ncan display a link to a report of user reports by adding the `local_reports_id`\nto the `configuration` non-core contract.\n\n\n#### Default users\n\nDefault users can be automatically assigned to requests from certain IP\naddresses. To associate an IP address to a user, go to the non-core contract\n`configuration` and add a line to the 'properties' field similar to the\nfollowing:\n\n```\n  {\n    'ips': {'127.0.0.1': 'implicit-user@localhost'}\n  }\n```\n\nNote that multiple IP addresses can be mapped to the same user.\n\nIt's also possible to use Microsoft Active Directory to authenticate users\nwith a reverse proxy server. Edit the `configuration` non-core contract and add\nsomething like:\n\n```\n  {\n    \"ad_authentication\": {\n      \"default_user\": \"readonly@example.com\",\n      \"on\": true\n  }\n```\n\n\n## Design Decisions\n\nWhy don't you use the +/- infinity values for timestamps? The problem is that it's not clear how this would translate into Python. So we currently use null for infinity, which naturally translates into None in Python. \n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Web Application for checking UK utility bills.",
    "version": "2468",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "fc495d978a6344b8fe07ecb7ba5eaca9",
                "sha256": "ddb5cd23db27650bb2afdfab11ce378bee5977c8baccf8286863e0350893cd34"
            },
            "downloads": -1,
            "filename": "chellow-2468-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fc495d978a6344b8fe07ecb7ba5eaca9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 17634466,
            "upload_time": "2021-05-06T13:55:09",
            "upload_time_iso_8601": "2021-05-06T13:55:09.874516Z",
            "url": "https://files.pythonhosted.org/packages/7c/75/486c698c95fc85349f6674a97ab5fcf93c569096095b7c573f156d03e4b5/chellow-2468-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5c9848890266986fc2f461d71924bd97",
                "sha256": "df3363ccc8735ae13a2f026f212cdd49525192161f43d60b3235fb93cdb8d141"
            },
            "downloads": -1,
            "filename": "chellow-2468.tar.gz",
            "has_sig": false,
            "md5_digest": "5c9848890266986fc2f461d71924bd97",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15533742,
            "upload_time": "2021-05-06T13:55:13",
            "upload_time_iso_8601": "2021-05-06T13:55:13.937861Z",
            "url": "https://files.pythonhosted.org/packages/6f/74/ef767f9ebf49ab4fb050a2967504b06cf2539f730b1a65e62579edf4d128/chellow-2468.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-06 13:55:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "WessexWater",
    "error": "Could not fetch GitHub repository",
    "lcname": "chellow"
}
        
Elapsed time: 0.23504s