csi

? Look up NAICS (North American Industry Classification System) and SIC (Standard Industrial Classification) codes and how they correlate with one another

  • 所有者: leereilly/csi
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Classification of Standard Industry

The North American Industry Classification System (NAICS) is used by business and government to classify business establishments according to type of economic activity (process of production) in Canada, Mexico and the United States. It has largely replaced the older Standard Industrial Classification (SIC) system; however, certain government departments and agencies, such as the U.S. Securities and Exchange Commission (SEC), still use the SIC codes. CSI helps you look those codes up.

Installation

This is a Ruby gem, so you'll need a little Ruby-fu to get it working. If you're not familiar with Ruby, there are CSV and TOML data sets available too that you can load into a spreadsheet, database or parse in your favorite programming language.

For Rubyists:

gem install csi

Or add this to your Gemfile:

gem 'csi', '~> 0.3.3'

For everyone else:

  • All NAICS and SIC codes, classifications, and correlations in TOML
  • NAICS codes and classifications in CSV
  • SIC codes and clasifications in CSV

Usage

You can look up 2-6 digits NAICS codes and 2-4 digit SIC codes. Please note: If you ever cast the String codes to Integers, you're gonna have a bad time. SIC code 011 is 011 as a String and 11 as an Integer. The more you know :dizzy:


naics_record = CSI::naics "928110"
# => <CSI::Record:0x007fb3c5fdbb98]

naics_record.name
# => "National Security"

CSI::naics("336992").name
# => Military Armored Vehicle, Tank, and Tank Component Manufacturing

CSI::naics("611310").name
# => Colleges, Universities, and Professional Schools

CSI::sic("8211").name
# => Elementary and Secondary Schools

CSI::sic("91")
# => "Executive, Legislative, and General Government, except Finance"

You can also lookup correlating SIC codes for NAICS codes and vice-versa!

naics_record = CSI::naics("928110")
# => <CSI::Record:0x007fb3c5fdbb98]

naics_record.name
# => "National Security"

naics_record.correlations
# => "["9711"]"

correlating_sic_record = CSI::sic naics_record.correlations.first
# => <CSI::Record:0x007fd0bd9a4fd0>

correlating_sic_record.name
# => "National Security"

NAICS & SIC Overview

Explaining NAICS and SIC is outside the scope of this README, but you'll find an extremely brief overview below. For more information you can check out the SIC page and NAICS page on Wikipeda.

The larger the coode, the more specific the industry. Here's a NAICS example:

Data Sources

All codes and classifications obtained via http://www.census.gov, so you know it's legit.

Copyright (c) 2013 Lee Reilly. See LICENSE.md for further details.

Many Bothans died to bring you this information.

主要指標

概覽
名稱與所有者leereilly/csi
主編程語言Ruby
編程語言Ruby (語言數: 1)
平台
許可證Other
所有者活动
創建於2013-02-16 18:28:35
推送於2020-12-23 22:31:14
最后一次提交2015-06-24 10:17:53
發布數4
最新版本名稱v0.3.3 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數33
關注者數3
派生數11
提交數92
已啟用問題?
問題數3
打開的問題數0
拉請求數1
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?