Skip to main content

Google Projects

This project provides a set of services for interacting with Google APIs, including Google Sheets and Gmail. The API services facilitate various functionalities like sending emails, fetching spreadsheets, and more.

Table of Contents

Project Structure

google_projects/ ├── api_services/ │ ├── api_calls/ # Your package code │ ├── tests/ # Your test cases │ ├── requirements.txt # List of dependencies │ ├── setup.py # Setup script │ └── .gitignore # Git ignore file ├── venv/ # Virtual environment directory

Installation

Follow the steps below to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/ayo-dev7/google_projects.git
    cd google_projects/api_services
    
  2. Create a virtual environment:

    python -m venv venv
    
  3. Activate the virtual environment: On Windows:

    venv\Scripts\activate
    

    On macOS/Linux:

    source venv/bin/activate
    
  4. Install the dependencies:

    pip install -r requirements.txt
    

Usage

  1. Google Sheets Client
    To use the GoogleSheetsClient, instantiate it with the appropriate client secret file and scopes:

    from api_services.api_calls.sheet_client import GoogleSheetsClient
    
    client = GoogleSheetsClient(client_secret_file='path/to/client_secret.json', scopes=['https://www.googleapis.com/auth/spreadsheets'])
    
  2. Gmail Client
    To send an email using the GmailClient:

    from api_services.api_calls.gmail_client import GoogleGmailClient
    
    gmail_client = GoogleGmailClient(client_secret_file='path/to/client_secret.json', scopes=['https://www.googleapis.com/auth/gmail.send'])
    gmail_client.send_email(sender='you@example.com', to='recipient@example.com', subject='Subject Here', message_text='Email body here.')
    

Running Tests

To run the tests for this project, ensure you are in the virtual environment and then execute:

pytest

Contributing

Contributions are welcome! Please follow these steps to contribute:

  • Fork the repository.
  • Create a new branch (git checkout -b feature-branch).
  • Make your changes and commit them (git commit -m 'Add some feature').
  • Push to the branch (git push origin feature-branch).
  • Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for api-services 0.1.1

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

Source distribution (sdist)

Source distribution for api-services 0.1.1
File Size Uploaded Provenance Actions
api-services-0.1.1.tar.gz 8.6 kB Without provenance Details for api-services-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for api-services 0.1.1
File Interpreter ABI Platform Actions
api_services-0.1.1-py3-none-any.whl Python 3 none any Details for api_services-0.1.1-py3-none-any.whl

Total release size: 17.7 kB

Release files / api-services-0.1.1.tar.gz

Download URL api-services-0.1.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92876c4000925d687f6a4c157ec6ce0b2f28b5a4438a2bd8f9a1a77dedbe1363
BLAKE2b-256 checksum
How to use checksums
46c20b4148d8ded2233ba17a93a25ec8d4d75e1f088dc3c5d5717f5525d7012f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / api_services-0.1.1-py3-none-any.whl

Download URL api_services-0.1.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1c2fcdf3acfc892b2133a67c34eef1953989f435d21736b2aba3d50ef84c5b1
BLAKE2b-256 checksum
How to use checksums
4279802174c208e069f2718f1add1b4904aa3a30f140062dcbd5494327f3bc77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Security for api-services 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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