Skip to main content

A collection of data processing Spark functions for the use in Statistics Norway.

Project description

SSB Spark Tools

A collection of data processing Spark functions for the use in Statistics Norway (SSB)

PyPI version Status License

The SSB Spark Tools Library is a colection of Data processing functions for the use in Data processing in Statistics Norway

Installation

pip install ssb-spark-tools

Development setup

This repo uses poetry for dependency management and publishing to PyPi. Install poetry as described on the poetry install page.

poetry install                 Install required tools for build/dev
poetry run pytest              Run tests
poetry build                   Build dist
poetry publish                 Publish to PyPi

Testing

Run tests for all python distributions using GitHub Actions, see https://github.com/statisticsnorway/SSB_Spark_tools/actions

Releasing

Prerequisites: You will need to register accounts on PyPI and TestPyPI.

Before releasing:

  • Make sure you're working on a "new" version number.
  • Make sure to update release notes.
  • Make sure the GitHub repo has a secret with the name PYPI_API_TOKEN and contains the PyPi access token.

To release and publish a new version to PyPI:

  • Create a new release in the GitHub repo.
  • The Upload Python Package GitHub Action will start and publish the new version to PyPi.

Manually:

poetry publish

For a dress rehearsal, you can do a test release to the TestPyPI index. TestPyPI is very useful, as you can try all the steps of publishing a package without any consequences if you mess up. Read more about TestPyPI here.

You should see the new release appearing here (it might take a couple of minutes for the index to update).

Release History

  • 0.0.1
    • Initial version with functions as in use on initiaition

Meta

Statistics Norway – https://github.com/statisticsnorway

Distributed under the MIT license. See LICENSE for more information.

https://github.com/statisticsnorway/SSB_Spark_tools

Contributing

  1. Fork it (https://github.com/statisticsnorway/SSB_Spark_tools/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

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

ssb_spark_tools-0.1.12.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

ssb_spark_tools-0.1.12-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file ssb_spark_tools-0.1.12.tar.gz.

File metadata

  • Download URL: ssb_spark_tools-0.1.12.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for ssb_spark_tools-0.1.12.tar.gz
Algorithm Hash digest
SHA256 fe8ddbdc68735b412550ffc35cc363467d6dc2d5220c152d61ce4f67e72ce09b
MD5 73ff80c2aa0159875e37adfdafd24a6c
BLAKE2b-256 da4e5d6a519692ed2afc9e87cebd1632a03e3841089f9b33cfade3842390d829

See more details on using hashes here.

File details

Details for the file ssb_spark_tools-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for ssb_spark_tools-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 10581cb7d0d5ef59f0bf7ec63b571f0aeaa8b07814b56f874caca9793727a110
MD5 682c234345a9bf389f6e1596b6175505
BLAKE2b-256 18ad77312e2ca2cf46f91e505b01ec4be7e5c14ac253f7e0a58118dd2322d58c

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