Skip to main content

NQGCS

This package offers a pleasant interface to Google Cloud Storage.

Usage:

Create an NQGCS object

There are three ways. On Appengine, you can do simply:

from nqgcs import NQGCS

nqgcs = NQGCS()

You can do the above also if you use:

export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"

Otherwise, you can use a json key file. You can either pass the path to the file:

from nqgcs import NQGCS

nqgcs = NQGCS(json_key_path="your json key to gcs")

Or you can pass the file content, read via json:

from nqgcs import NQGCS

nqgcs = NQGCS(keys=keys)

Access GCS

Upload a file

with open("myfile", "r") as f:
    nqgcs.upload("bucket name", "file name", f, type="text/plain")

Write a string to GCS

nqgcs.write("bucket name", "file name", "my content string", type="text/plain")

Read a string from GCS

s = nqgcs.read("bucket name", "file name")

Download a file from GCS

nqgcs.download("bucket name", "file name")

Delete a file, list files

nqgcs.delete("bucket name", "file name")

for f in nqgcs.listfiles("bucket_name", maximum=200):
    print("The file name is:", f)

Metadata

Release files for nqgcs 0.1.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 nqgcs 0.1.4
File Size Uploaded Provenance Actions
nqgcs-0.1.4.tar.gz 3.6 kB Without provenance Details for nqgcs-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / nqgcs-0.1.4.tar.gz

Download URL nqgcs-0.1.4.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c48f8f3d0dbd21251484756dfd5e10b958655c39e5a9a0d98a679b95f9e9fdd0
BLAKE2b-256 checksum
How to use checksums
84fbe675f2a6619faa9bf731b7ace2aa0f63e4a3070c617236108ea108155fcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.7

Release files / nqgcs-0.1.4-py3-none-any.whl

Download URL nqgcs-0.1.4-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
862b83b130953453b2006cb054628ea78ea366d6cda5ef513fafcb9470181b51
BLAKE2b-256 checksum
How to use checksums
67e58f7007d88f92707d06e57f1ed202ed8c93dee5047379407cc121b1406526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.7

Security for nqgcs 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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