Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

govsic

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

govsic

A small Python library to interface the Standard Industrial Classification protocol

  • 1.1.5
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc