Skip to main content

BigQuery Sync

This repository contains the bigquery_sync package, which helps to sync between git and Bigquery in your Python projects. This guide provides instructions for configuring, building, and publishing the package to PyPI using poetry.

Prerequisites

Before getting started, ensure that you have the following installed on your machine:

  • Python (version 3.8 or higher)
  • Poetry (latest version)

If you're new to Poetry, it’s a dependency management and packaging tool that simplifies the Python project workflow.

Setup Instructions

1. Configure Your PyPI Credentials

Before you can publish a package to PyPI, you'll need to authenticate. If you haven’t already, configure your Poetry installation with your PyPI API token.

To do this, run the following command, replacing your-api-token with your actual PyPI token:

bash
poetry config pypi-token.pypi your-api-token

If you don’t have an API token yet, you can generate one by logging into your PyPI account and following the instructions for creating a new token.

2. Update the Version Number

Before publishing a new version of your package, you need to update the version number in the pyproject.toml file. This is important for tracking releases and ensuring that your package’s version is unique on PyPI.

Open the pyproject.toml file and locate the [tool.poetry] section. Update the version field to reflect the new version you're about to publish:

[tool.poetry]
name = "bigquery_sync"
version = "0.1.0"  # Update this version number
description = "A Python package for syncing with BigQuery."

3. Build the Package

Once you've updated the version number, it's time to build the package. This will create distributable files that can be uploaded to PyPI.

Run the following command to build the package:

poetry build

This command will generate two types of files inside the dist/ directory:

  • A source distribution (.tar.gz file)
  • A wheel distribution (.whl file)

4. Publish the Package to PyPI

After successfully building the package, you can now publish it to PyPI.

Use the following command to publish your package:

poetry publish

If you’ve correctly configured your PyPI token, Poetry will authenticate and publish the package.

5. Verifying the Package

Once the package has been published, you can verify it by visiting the PyPI website:

You can also install and test your package locally by running:

pip install bigquery_sync

Additional Resources

For more detailed instructions on publishing Python packages to PyPI using Poetry, you can refer to the following tutorial:

This guide provides further insights and troubleshooting tips if you run into any issues.

Conclusion

By following the steps above, you can easily configure, build, and publish your Python package to PyPI using Poetry. Happy coding!

Metadata

Release files for bigquery_sync 0.1.18

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

Source distribution (sdist)

Source distribution for bigquery_sync 0.1.18
File Size Uploaded
bigquery_sync-0.1.18.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bigquery_sync 0.1.18
File Interpreter ABI Platform
bigquery_sync-0.1.18-py3-none-any.whl Python 3 none any Details

Total release size: 41.3 kB

Release files / bigquery_sync-0.1.18.tar.gz

Download URL bigquery_sync-0.1.18.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e70f7035a394940e820ad5b63d62482211941411654a6b5247ebf43cafd1990c
BLAKE2b-256 checksum
How to use checksums
8f258344e85df4f0f4fb0ba65a18201d38bf7dafe481520c598f03e09bf56c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.0 Darwin/21.6.0

Release files / bigquery_sync-0.1.18-py3-none-any.whl

Download URL bigquery_sync-0.1.18-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a73e0c9a9160d407603435bac7ae848743348e11cf23350a160127d5a5ac1cf8
BLAKE2b-256 checksum
How to use checksums
bc99c2624ae9f8eaa587f428046ce21c1c453663acbef63d057541cb0612f845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.0 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

0.1.18 This release

2 release files

0.1.17

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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