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

Run make help to see common development commands.

install-build-tools            Install required tools for build/dev
build                          Build dist
test                           Run tests
clean                          Clean all build artifacts
release-validate               Validate that a distribution will render properly on PyPI
release-test                   Release a new version, uploading it to PyPI Test
release                        Release a new version, uploading it to PyPI
bump-version-patch             Bump patch version, e.g. 0.0.1 -> 0.0.2
bump-version-minor             Bump minor version, e.g. 0.0.1 -> 0.1.0

Refer to the Makefile to see details about the different tasks.

Testing

Run tests for all python distributions using

make test

This will require that your dev machine has the required python distributions installed locally. (You can install python distributions using pyenv.)

Releasing

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

Before releasing, make sure you're working on a "new" version number. You can bump the version using the bumpversion tool.

Also, make sure to update release notes.

To release and publish a new version to PyPI:

make release-validate

This will run tests, build distribution packages and perform some rudimentary PyPI compliancy checking.

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.

make release-test

To perform the actual release, run:

make release

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-pseudonymization-py]

Contributing

  1. Fork it (https://github.com/statisticsnorway/ssb-pseudonymization-py/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.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ssb_spark_tools-0.1.2-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ssb_spark_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ssb_spark_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 74570ba6ba6b40519355b67bc171895a91d45bc1af81888e486a64f5f78972bd
MD5 f64dd875cf6c1de9c599a2a284c0861e
BLAKE2b-256 691098ed6a6fe01896a5fc22f6baeaa15e9293961fbc0e62b6607effb08f4c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ssb_spark_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ssb_spark_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71f6a2b0c34ccd73f1a2953b89570152f37db14afdbd66056e3a2a2596b40cf9
MD5 458fc209963498bb68c6d2ece45bd09c
BLAKE2b-256 b5674bbeb40d31dabc00a913a528c5abf003b0b5df99c094f0fb1cfec45dc973

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page