Skip to main content

Seos

made-with-python PyPI pyversions Maintenance Coverage Awesome Badges

Simple Extractor on Sheets (or SEOS) is an extraction tool focused on Google Sheet data scraping. It uses Google's Python API client to access those data; this allows the library to access on a lower level functions defined by Google without the need of using another Sheets abstraction.

Features

Seos features are put below and their status if they're well-tested using PyTest.

Feature Status
Connection to a Google Sheet given an OAuth credentials file and Sheet ID Passed unit test
Extraction on a sheet with a defined scope Passed unit test
Sheet name switching Passed unit test

Installation

# if using poetry
# highly recommended
poetry add seos

# also works with standard pip
pip install seos

Getting Started

Seos uses APIs defined by Google to access Sheets data; but the idea is that developing with Seos should be understandable when connecting to a data and changing contexts; e.g. change in Sheet Name or change in scope.

The initial step would be to pass a credentials file and the sheet ID as an entrypoint to the data. It assumes that you have a credentials file taken from Google Cloud in JSON format.

from seos import Seos
extractor = Seos(
    credentials_file="./credentials.json"
    spreadsheet_id="<SPREADSHEET-ID>"
)

Once an extractor context is created, we can then define the sheet name and scope then executing extract if you're happy with the parameters.

extractor.sheet_name = "Report - June 1, 1752"
extractor.scope = "A1:D1"
extractor.extract()

With this, changing the scope and the sheet name will act as a cursor for your sheet data. We can get anything from the sheet just by changing the scope.

extractor.sheet_name = "Report - June 1, 1752"
extractor.scope = "A1:D" # get all from A1 until end of column D
extractor.extract()

We can even do sheet switching if necessary for data that contains several contexts.

extractor.sheet_name = "Report - June 1, 1752"
extractor.scope = "A1:D"
extractor.extract()

extractor.sheet_name = "Report - June 2, 1752"
extractor.scope = "B5:G5"
extractor.extract()

Metadata

Release files for seos 0.3.5

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

Source distribution (sdist)

Source distribution for seos 0.3.5
File Size Uploaded Provenance Actions
seos-0.3.5.tar.gz 5.2 kB Without provenance Details for seos-0.3.5.tar.gz

Built distribution (wheel)

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

Total release size: 10.5 kB

Release files / seos-0.3.5.tar.gz

Download URL seos-0.3.5.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0ff7663b8525a24f6c4824fc906363db728525c8b64e25c0f10afe23c0f0d123
BLAKE2b-256 checksum
How to use checksums
a06c4c297b81af71fe7d295dc2f68d1c6eca3ae77c0e80f2e98677aa2d16ca2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.2 CPython/3.6.8 Darwin/19.2.0

Release files / seos-0.3.5-py3-none-any.whl

Download URL seos-0.3.5-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5990110e6ea510bbe81f7568ab7d2f1b8522f127f5841cc230e2852a30c81799
BLAKE2b-256 checksum
How to use checksums
adba004293c1a9876b9b1de066f7ed96f9121d55d9c8fe89b015ad8d84f8d0e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.2 CPython/3.6.8 Darwin/19.2.0

Security for seos 0.3.5

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