S4F service responsible for sponsored ads
Project description
Sponsored Ads Service
Getting Started
Getting started with developing on sponsored-ads-service
Viewing Documentation
To view the full documentation of the project, make sure you pull the repo and run the following:
pip install -e .[docs]
mkdocs serve
Note: If you get errors when starting mkdocs, ensure that you have the client installed:
pip install -e ./client
The docs will be hosted locally on port 8000 (http://localhost:8000/)
Project Setup
These steps will go through how to set up your developer environment
Setup your virtual environment
You will have 2 choices here depending on whether you use virtualenv or pyenv-virtualenv
-
Using
virtualenv:virtualenv -p python3 venv source venv/bin/activate
-
Using
pyenv-virtualenv:pyenv virtualenv 3.12 sponsored-ads-service echo "sponsored-ads-service" >| .python-version
Install dependencies
Install the service and developer dependencies, as well as, configure pre-commit
pip install -e .
pip install -e .[dev]
pre-commit install
Note: If you are using zsh you may need to either:
- Add unsetopt nomatch to your
~/.zshrc- Use
pip install -e .\[dev\]instead
Note: If you want to run the pre-commits without committing to a branch:
pre-commit run
Build Client Locally
pip install -e ./client
Kubernetes Quickstart (Local)
Starting up a developer patched sponsored-ads-service in your local environment.
Note: Before you begin, you must have completed the steps from the Project Setup section.
helm install -n sponsored-ads-service --set dev.patch=true,dev.hostPath=$PWD charts/sponsored-ads-service
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sponsored_ads_service-3.0.3rc1.tar.gz.
File metadata
- Download URL: sponsored_ads_service-3.0.3rc1.tar.gz
- Upload date:
- Size: 89.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebd832352a8dece032078a7e6db09563e6896dbe9d03a252b30a54051113e140
|
|
| MD5 |
b386a3711459a916293e8b4a3003ddb3
|
|
| BLAKE2b-256 |
3298d580aee3e32d2e84a376583ef1af067a57f2a3b40aa7174f7930b232ba17
|
File details
Details for the file sponsored_ads_service-3.0.3rc1-py3-none-any.whl.
File metadata
- Download URL: sponsored_ads_service-3.0.3rc1-py3-none-any.whl
- Upload date:
- Size: 123.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b39f642b98333e5ac0e9c1a94a94aaca456ce2a1025d5b33980a3706797c4993
|
|
| MD5 |
5af7e92ba07e097797cc72f20bf80c6d
|
|
| BLAKE2b-256 |
4a75b9cd6465defe844cc89a645acf2761d26be9998bcd66348cdef51471dd32
|