Skip to main content

Blocks

Blocks provides a simple interface to read, organize, and manipulate structured data in files on local and cloud storage. See the documentation for more information.

pip install sq-blocks

blocks

Development

Setup

To install all dependencies for local development and testing, you can do

pip install -e .[dev]

Tests

  • pytest runs the unit tests

To run them locally:

pytest

Continuous Integrations

CI is handled through GitHub Actions, and will run non-GCS tests on 3.6, 3.7, 3.8. We may add cloud storage tests to CI soon, but for now tests should also be run locally to confirm that functionality works as well.

Versions and Tags

Use bumpversion to update the version of the package

bumpversion [major|minor|patch]

This will increment the version and update it both in setup.py and blocks/__init__.py. It will also automatically commit a tag with the corresponding version. You can push this to the repo with

git push --tags

Formatting

We use pre-commit to ensure consistent formatting, to make sure you run the hooks:

pre-commit install

Docs

The docs are generated from the code with sphinx, and can be tested locally:

cd docs
make html

License

Copyright 2018 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release files for sq-blocks 0.9.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sq-blocks 0.9.4
File Size Uploaded
sq-blocks-0.9.4.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sq-blocks 0.9.4
File Interpreter ABI Platform
sq_blocks-0.9.4-py3-none-any.whl Python 3 none any Details

Total release size: 41.0 kB

Release files / sq-blocks-0.9.4.tar.gz

Download URL sq-blocks-0.9.4.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2969d0e437f587a5c18d8a86b0a74ec41b6b63d2b04f402323ff0c328973b592
BLAKE2b-256 checksum
How to use checksums
2db207d7fa73dd2260f62208485068c344a5837248ee8805d7d71a70f2f97df8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release files / sq_blocks-0.9.4-py3-none-any.whl

Download URL sq_blocks-0.9.4-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64c32b28c92f6d1548f325b7bfad4b6b3f724f08d50d26b0c0b6b30579a47ba3
BLAKE2b-256 checksum
How to use checksums
ddd16b280b4afd25e5b38fade1ebf36c34b49effc10073b71db36e24822e02a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.9.4 This release

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page