Skip to main content

Open Source Ops and Statistics

Project description

https://github.com/NREL/osos/workflows/Documentation/badge.svg https://github.com/NREL/osos/workflows/pytests/badge.svg https://github.com/NREL/osos/workflows/Lint%20Code%20Base/badge.svg https://img.shields.io/pypi/pyversions/NREL-osos.svg https://badge.fury.io/py/NREL-osos.svg https://img.shields.io/github/license/NREL/osos https://codecov.io/gh/NREL/osos/branch/main/graph/badge.svg?token=0J5GVFEGYZ https://mybinder.org/badge_logo.svg

This package helps track usage and contribution data for open source software. OSOS can be used to retrieve timeseries data on the usage and activity of open source repositories. Note that github usage data (clones and views) are only available for repositories that you have push permissions to, and they are only available for the last two weeks. Also note that OSOS needs a github API token stored in the environment variable GITHUB_TOKEN to pull data from github. See the OSOS CLI documentation for details on how to run OSOS from the command line.

Installing OSOS

OSOS can be installed via pip: pip install nrel-osos or by cloning the repo and doing a developer install: pip install -e . from within the repo directory.

Getting Started

After installing, try calling the command line help page with osos --help to see the run options. There are currently two CLI commands: one for running the osos utility (osos run --help) and one for plotting the osos data files (osos plot --help).

You can also run osos from python directly. Try launching binder and navigating to the osos example notebook. You will need your own github api token to run the notebook.

How To Use OSOS

OSOS is a general utility for downloading usage statistics from github, pypi, and conda. Feel free to fork the repo to track your own projects. We have a scheduled github action workflow set up to automatically pull usage statistics for our projects every Monday morning. The data is saved in the osos data directory and plots are saved to the osos plots directory. For example, here is the 180-day cumulative pypi downloads for reV, one of our open source projects:

https://github.com/NREL/osos/blob/main/plots/rev_pypi_180_cumulative.png

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

NREL-osos-0.0.3.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

NREL_osos-0.0.3-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file NREL-osos-0.0.3.tar.gz.

File metadata

  • Download URL: NREL-osos-0.0.3.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for NREL-osos-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1f28030d02b9610558755634e5fe889849aaaf2d336eea81a7cdc490450841f5
MD5 01efbdac52d3a9cb4cdec42e78cd7f52
BLAKE2b-256 7a2c78ae7305fca2b1f34ebadb528899a2e2eed1f8ae07c4129a1e33dab77ce5

See more details on using hashes here.

File details

Details for the file NREL_osos-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: NREL_osos-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for NREL_osos-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13cd9e4778ee3a516097606740482f5df84aa456c8a59bb9d2c88087a6f28902
MD5 e01a4d0eddd2d8a3ebd6ad7a28a7faa2
BLAKE2b-256 efe6a313b0a59f5a60a202a47e755baa79e393b2c521eedefc2d0416c957d420

See more details on using hashes here.

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