PyFlick
A quick and dirty Python API for Flick Electric.
Usage
from pyflick import FlickAPI
from pyflick.authentication import SimpleFlickAuth
from aiohttp import ClientSession
def async get_flick_pricing():
async with ClientSession() as session:
auth = SimpleFlickAuth("USERNAME", "PASSWORD", session)
api = FlickAPI(auth)
return await api.getPricing()
The SimpleFlickAuth client can also accept custom client ID and secret (this can be found by sniffing the client).
API will return a FlickPrice object for accessing the price information.
You can also get the raw data via FlickPrice.raw.
This will return a price object that looks a little like this:
{
"kind": "mobile_provider_price",
"customer_state": "active",
"needle": {
"price": "11.163",
"status": "urn:flick:market:price:no_contract",
"unit_code": "cents",
"per": "kwh",
"start_at": "2020-04-19T02:30:00Z",
"end_at": "2020-04-19T02:59:59Z",
"now": "2020-04-19T02:34:38.410Z",
"type": "rated",
"charge_methods": [
"kwh"
],
"components": [
{
"kind": "component",
"charge_method": "kwh",
"charge_setter": "retailer",
"value": "4.26",
"quantity": "1.0",
"unit_code": "cents",
"per": "kwh",
"flow_direction": "import",
"metadata": {
"content_code": "UN",
"channel_number": 1,
"meter_serial_number": "RD1111111",
"hours_of_availability": 24
},
"_links": {}
},
...
]
}
}
Metadata
Release files for PyFlick 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyflick-1.1.3.tar.gz | 9.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyFlick-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / pyflick-1.1.3.tar.gz
| Download URL | pyflick-1.1.3.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ededb9fecab8d9828a93d15977e2a918819318b5548979a0925a1f5e2a97e4e
|
|
BLAKE2b-256 checksum How to use checksums |
c42f15af7421b8445ad2252ef1aa4ea9394acde47a9bfe0a8c6ff76a537685d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 9, 2025.
Transparency logRelease files / PyFlick-1.1.3-py3-none-any.whl
| Download URL | PyFlick-1.1.3-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb1d269792178299bc268e2f4c60716e4b1633a6499f6dfad5269b59b0dc5983
|
|
BLAKE2b-256 checksum How to use checksums |
3662fba2058c02022c1e73ecb05ae3cfbbee31bb368f3612747b0b05bb65072a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 9, 2025.
Transparency logSecurity for PyFlick 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pyflick-1.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 9, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.