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 = }")
for label, prop in (
("Code value", sic.code),
("Is valid?", sic.is_valid),
("Section", sic.section),
("Component", sic.component),
):
print(f"{label}:\t{prop}")