somenergia-generationkwh


Namesomenergia-generationkwh JSON
Version 2.5.8 PyPI version JSON
download
home_pagehttps://github.com/Som-Energia/somenergia-generationkwh
SummaryOpenERP module and library to manage Som Energia's Generation kWh
upload_time2023-09-25 11:11:38
maintainer
docs_urlNone
authorSom Energia SCCL
requires_python
licenseGNU Affero General Public License v3 or later (AGPLv3+)
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # somenergia-generationkwh

OpenERP module and library to manage [Som Energia]'s Generation kWh


[![CI](https://github.com/Som-Energia/somenergia-generationkwh/actions/workflows/main.yml/badge.svg)](https://github.com/Som-Energia/somenergia-generationkwh/actions/workflows/main.yml)
[![CircleCI](https://circleci.com/gh/Som-Energia/somenergia-generationkwh.svg?style=svg)](https://circleci.com/gh/Som-Energia/somenergia-generationkwh)
[![Coverage Status](https://coveralls.io/repos/github/Som-Energia/somenergia-generationkwh/badge.svg)](https://coveralls.io/github/Som-Energia/somenergia-generationkwh)

[Generation kWh] is a campaign to design a feasible alternative
to electricity self-production in the Spanish market.
Spanish market legislation has been designed in a way quite
hostile towards distributed renewable energies and user self-production
and we propose _collective self-production_ as a formula that still
fits in the market.

[Generation kWh]:https://generationkwh.org
[Som Energia]:https://somenergia.coop

The goal of the campaign is to collect investment from cooperative members
for new renewable production projects.
Investors don't get an interest rate in exchange for their investment
but the right to use kWh produced in such plants at cost price,
instead of the price derived from the official auction.
Official auction use a marginalist method so that the inclusion
in the mix of expensive fossil sources, raises final prices
to be paid for every source, even cheaper renewable sources.

This package holds the business logic to handle the use rights
coming from the production plants related to this campaing and
transfer them to user invoices.

## Dependencies

In Debian/Ubuntu

```bash
$ sudo apt-get build-dep python-numpy
```

## Testing

```bash
nosetests generationkwh # for unittests
nosetests som_generationkwh/test # for functional/erp, requires running local erp
dodestral -m som_generationkwh # for destral tests, without production database either running local erp
```

[Destral docs]:https://destral.readthedocs.io/en/latest/


## CHANGES

### 2.5.8 2023-09-25

- PR [#8](https://github.com/Som-Energia/somenergia-generationkwh/pull/136) Added bank mandate wizard

### 2.5.7 2020-01-29

- PR #8 Added logic to model 193 lines wizard

### 2.5.6 2020-01-15

- CreateFromForm: Can create Aportacions

### 2.5.5 2019-12-16

- `genkwh_mtc curve` new option `--by`, to aggregate the matrix in different ways.
	- dayhour: values for every hour for each day (the old one)
	- day: just the dayly accomulated
	- monthhour: values summated each month for each hour
	- month: just the monthly accomulated
- Rights granter: logs now include input and output remainder
- scriptlaucher: more scripts and options
- `genkwh_plants`: safe unicode for pipes
- Regression: Python 3 compatibility for the generationkwh module
- New model generationkwh.emission to create new investment campaigns

### 2.5.4 2019-07-19

_Production rewrite release_

- Simplifications due to plantmeter functionality externalized to gisce
    - ProductionLoader renamed as RightsGranter
    - Tests fill production directly instead using csv's plugins
    - Removed `som_generation.RightsGranter.retrieveMeasuresFromPlants`
    - Removed `som_generation.RightsGranter.endPoint`
    - Removed `som_generation.ProductionAggregatorProvider.getNShares`
- `genkwh_reminders` new subcommands pop and update
- `genkwh_productionloader` recompute subcommand to be able to recompute
  rights respecting existing ones if something weird happens
  (ex. you have been reading from the wrong plant for a while)
- A new mongo collection `rightscorrection` used to track the divergences
  from the rights curve that should be expected given the production
  when you apply recompute.
- Added scriptlauncher file to remotely launch commands of interest
- added parameter `lastDateToCompute` to `RightsGranter.computeAvailableRights`

### 2.5.3 2019-06-17

- MOD: Add IRPF retention to amortization and divestment invoices
- MOD: Change profint formula to avoid 3rd decimal

### 2.5.2 2019-05-13

- MOD: Add profit amount in Generationwkh invoice line

### 2.5.1 2019-04-29

- FIX: Change date type in `Investment.create_from_transfer`
- `genkwh_reminders` has a new `active` subcommand to list just active
- `genkwh_reminders` subcommand `listactive` renamed to `listall` which is what it does
- Install scripts: `genkwh_reminders`, `genkwh_productionloader`, `genkwh_curve`, `genkwh_rights`, `genkwh_usage`

### 2.5.0 2019-04-02

- Multiple plants supported
- LayeredShareCurve: Generalized additive constant curve from MemberShareCurve for PlantShareCurve

### 2.4.1

- Fix: Error calling notification function on default assignments
- `calculate_irpf_generation.py`: New script to compute the IRPF tax retention

### 2.4.0

- API for the OV to list investments and assignments for a member
    - `ResPartner.www_generationkwh_assignments(partner_id)`
    - `ResPartner.www_generationkwh_investments(partner_id)`
- New verbose list command `genkwh_investment ls`
- Python3 compatibility on the python module (not yet the erp one)
- Travis coverage
- Overall test desfragilization
- `Investment.create_from_transfer` returns just the new id, not also the old one







            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Som-Energia/somenergia-generationkwh",
    "name": "somenergia-generationkwh",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Som Energia SCCL",
    "author_email": "info@somenergia.coop",
    "download_url": "https://files.pythonhosted.org/packages/f3/d3/36f1a6dbf38be8770aaf24d25658d6706847b22c2bb2dab75adb2ff93638/somenergia-generationkwh-2.5.8.tar.gz",
    "platform": null,
    "description": "# somenergia-generationkwh\n\nOpenERP module and library to manage [Som Energia]'s Generation kWh\n\n\n[![CI](https://github.com/Som-Energia/somenergia-generationkwh/actions/workflows/main.yml/badge.svg)](https://github.com/Som-Energia/somenergia-generationkwh/actions/workflows/main.yml)\n[![CircleCI](https://circleci.com/gh/Som-Energia/somenergia-generationkwh.svg?style=svg)](https://circleci.com/gh/Som-Energia/somenergia-generationkwh)\n[![Coverage Status](https://coveralls.io/repos/github/Som-Energia/somenergia-generationkwh/badge.svg)](https://coveralls.io/github/Som-Energia/somenergia-generationkwh)\n\n[Generation kWh] is a campaign to design a feasible alternative\nto electricity self-production in the Spanish market.\nSpanish market legislation has been designed in a way quite\nhostile towards distributed renewable energies and user self-production\nand we propose _collective self-production_ as a formula that still\nfits in the market.\n\n[Generation kWh]:https://generationkwh.org\n[Som Energia]:https://somenergia.coop\n\nThe goal of the campaign is to collect investment from cooperative members\nfor new renewable production projects.\nInvestors don't get an interest rate in exchange for their investment\nbut the right to use kWh produced in such plants at cost price,\ninstead of the price derived from the official auction.\nOfficial auction use a marginalist method so that the inclusion\nin the mix of expensive fossil sources, raises final prices\nto be paid for every source, even cheaper renewable sources.\n\nThis package holds the business logic to handle the use rights\ncoming from the production plants related to this campaing and\ntransfer them to user invoices.\n\n## Dependencies\n\nIn Debian/Ubuntu\n\n```bash\n$ sudo apt-get build-dep python-numpy\n```\n\n## Testing\n\n```bash\nnosetests generationkwh # for unittests\nnosetests som_generationkwh/test # for functional/erp, requires running local erp\ndodestral -m som_generationkwh # for destral tests, without production database either running local erp\n```\n\n[Destral docs]:https://destral.readthedocs.io/en/latest/\n\n\n## CHANGES\n\n### 2.5.8 2023-09-25\n\n- PR [#8](https://github.com/Som-Energia/somenergia-generationkwh/pull/136) Added bank mandate wizard\n\n### 2.5.7 2020-01-29\n\n- PR #8 Added logic to model 193 lines wizard\n\n### 2.5.6 2020-01-15\n\n- CreateFromForm: Can create Aportacions\n\n### 2.5.5 2019-12-16\n\n- `genkwh_mtc curve` new option `--by`, to aggregate the matrix in different ways.\n\t- dayhour: values for every hour for each day (the old one)\n\t- day: just the dayly accomulated\n\t- monthhour: values summated each month for each hour\n\t- month: just the monthly accomulated\n- Rights granter: logs now include input and output remainder\n- scriptlaucher: more scripts and options\n- `genkwh_plants`: safe unicode for pipes\n- Regression: Python 3 compatibility for the generationkwh module\n- New model generationkwh.emission to create new investment campaigns\n\n### 2.5.4 2019-07-19\n\n_Production rewrite release_\n\n- Simplifications due to plantmeter functionality externalized to gisce\n    - ProductionLoader renamed as RightsGranter\n    - Tests fill production directly instead using csv's plugins\n    - Removed `som_generation.RightsGranter.retrieveMeasuresFromPlants`\n    - Removed `som_generation.RightsGranter.endPoint`\n    - Removed `som_generation.ProductionAggregatorProvider.getNShares`\n- `genkwh_reminders` new subcommands pop and update\n- `genkwh_productionloader` recompute subcommand to be able to recompute\n  rights respecting existing ones if something weird happens\n  (ex. you have been reading from the wrong plant for a while)\n- A new mongo collection `rightscorrection` used to track the divergences\n  from the rights curve that should be expected given the production\n  when you apply recompute.\n- Added scriptlauncher file to remotely launch commands of interest\n- added parameter `lastDateToCompute` to `RightsGranter.computeAvailableRights`\n\n### 2.5.3 2019-06-17\n\n- MOD: Add IRPF retention to amortization and divestment invoices\n- MOD: Change profint formula to avoid 3rd decimal\n\n### 2.5.2 2019-05-13\n\n- MOD: Add profit amount in Generationwkh invoice line\n\n### 2.5.1 2019-04-29\n\n- FIX: Change date type in `Investment.create_from_transfer`\n- `genkwh_reminders` has a new `active` subcommand to list just active\n- `genkwh_reminders` subcommand `listactive` renamed to `listall` which is what it does\n- Install scripts: `genkwh_reminders`, `genkwh_productionloader`, `genkwh_curve`, `genkwh_rights`, `genkwh_usage`\n\n### 2.5.0 2019-04-02\n\n- Multiple plants supported\n- LayeredShareCurve: Generalized additive constant curve from MemberShareCurve for PlantShareCurve\n\n### 2.4.1\n\n- Fix: Error calling notification function on default assignments\n- `calculate_irpf_generation.py`: New script to compute the IRPF tax retention\n\n### 2.4.0\n\n- API for the OV to list investments and assignments for a member\n    - `ResPartner.www_generationkwh_assignments(partner_id)`\n    - `ResPartner.www_generationkwh_investments(partner_id)`\n- New verbose list command `genkwh_investment ls`\n- Python3 compatibility on the python module (not yet the erp one)\n- Travis coverage\n- Overall test desfragilization\n- `Investment.create_from_transfer` returns just the new id, not also the old one\n\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "GNU Affero General Public License v3 or later (AGPLv3+)",
    "summary": "OpenERP module and library to manage Som Energia's Generation kWh",
    "version": "2.5.8",
    "project_urls": {
        "Homepage": "https://github.com/Som-Energia/somenergia-generationkwh"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "758d041242d98c4e014e994e7a3b81726fcfff2a21f41a18f056969e49529a25",
                "md5": "1482bbd5eab498a153b083e3df74d21c",
                "sha256": "de1dcde80407658d5a4115f68bae0cd58680bc8b592d0091977c24f207e518cb"
            },
            "downloads": -1,
            "filename": "somenergia_generationkwh-2.5.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1482bbd5eab498a153b083e3df74d21c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 151129,
            "upload_time": "2023-09-25T11:11:36",
            "upload_time_iso_8601": "2023-09-25T11:11:36.631519Z",
            "url": "https://files.pythonhosted.org/packages/75/8d/041242d98c4e014e994e7a3b81726fcfff2a21f41a18f056969e49529a25/somenergia_generationkwh-2.5.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f3d336f1a6dbf38be8770aaf24d25658d6706847b22c2bb2dab75adb2ff93638",
                "md5": "c492761a3602f76e9899cd27f001d746",
                "sha256": "3924bdd7150822398954cb949a71e03f01d67fb9f6a76a358a91781d6fa96537"
            },
            "downloads": -1,
            "filename": "somenergia-generationkwh-2.5.8.tar.gz",
            "has_sig": false,
            "md5_digest": "c492761a3602f76e9899cd27f001d746",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 119466,
            "upload_time": "2023-09-25T11:11:38",
            "upload_time_iso_8601": "2023-09-25T11:11:38.333717Z",
            "url": "https://files.pythonhosted.org/packages/f3/d3/36f1a6dbf38be8770aaf24d25658d6706847b22c2bb2dab75adb2ff93638/somenergia-generationkwh-2.5.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-25 11:11:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Som-Energia",
    "github_project": "somenergia-generationkwh",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "somenergia-generationkwh"
}
        
Elapsed time: 0.11694s