A small Python library to interface the Standard Industrial Classification protocol
Project description
A lightweight library to parse and interface Standard Industrial Classification instances using the current UK SIC 2007 methodology.
govsic
supports the UK SIC 2007 framework by unifying the classification of business establishments and other statistical units by their type of economic activity/engagement into a common structure.
Data
Data used has been transformed using the Office for National Statistics' published opensource SIC structure and volume datasets.
Installation
The govsic
package is available on PyPI.
pip install govsic
Usage
govsic
provides the SIC
class to represent Standard Industrial Classifications. Get started by initialising a new SIC
object to interface, compare, and evaluate UK SIC 2007 codes.
See example usage in the examples/
repo directory
from govsic import SIC
sic = SIC(8110)
print(f"{sic = }")
# sic = [B] 08.11/0
for label, prop in (
("Code value", sic.code),
("Is valid?", sic.is_valid),
("Section", sic.section),
("Component", sic.component),
):
print(f"{label}:\t{prop}")
# Code value: 08110
# Is valid?: True
# Section: B
# Component: CLASS
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file govsic-1.1.5.tar.gz
.
File metadata
- Download URL: govsic-1.1.5.tar.gz
- Upload date:
- Size: 152.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0181c9a9b8b21b3a3889a25ac5c33eccb9d0445f40a12763e75156b01b6c828b |
|
MD5 | 3503206394f57dd17149ea7d1303b7f9 |
|
BLAKE2b-256 | 4913a6192aec5b67731b95f933aa4fb0e8617e1189c69d233e57df1b67179b5b |
File details
Details for the file govsic-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: govsic-1.1.5-py3-none-any.whl
- Upload date:
- Size: 154.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab2fa6d85501008101eea1581671549ea43aa228f99f28caa1e525e2114bd4e |
|
MD5 | 46eaad50d231d7a1c28ba615918c0f81 |
|
BLAKE2b-256 | 4d7112bc63d5118927f4444f23510b90b76628eec9fb77ee54b9cdafe1c5f719 |