Skip to main content

A small Python library to interface the Standard Industrial Classification protocol

Project description

govsic

CI status Supported Python versions PyPI version License Downloads

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

govsic-1.1.5.tar.gz (152.4 kB view hashes)

Uploaded Source

Built Distribution

govsic-1.1.5-py3-none-any.whl (154.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page