Skip to main content

A python package for using the https://sourcestack.co/ API.

Project description

SourceStack

LICENSE PyPi GitHub

Installation

pip install sourcestack

Usage

Basic Usage

from sourcestack.search import SourceStackSearchService

# Initialize the service
service = SourceStackSearchService(api_key="your-api-key")

# Search for jobs
results = service.search_jobs(name="DevOps")

Search Options

You can search jobs using different parameters:

# Search by job name (supports exact matching)
results = service.search_jobs(name="Platform Engineer", exact=True)

# Search by parent company
results = service.search_jobs(parent="Spotify")

# Search by company URL
results = service.search_jobs(url="company.com")

# Search by product usage (supports exact matching)
results = service.search_jobs(uses_product="Docker", exact=True)

# Search by product category
results = service.search_jobs(uses_category="Container Orchestration")

# Limit results
results = service.search_jobs(name="developer", limit=5)

Search Results

The search results are returned in the following format:

{
    "status": "success",
    "count": int,
    "entries": [
        {
            "job_name": str,
            "company_name": str,
            "company_url": str,
            "tags_matched": List[str],
            "tag_categories": List[str]
        }
    ],
    "pagination": {
        "limit": int
    }
}

Important Notes

  • Only one search parameter can be used at a time
  • The exact parameter can only be used with name and uses_product searches
  • All searches are case-insensitive

Contributing

For development, install the package with development dependencies:

pip install -e ".[dev]"

Building

bin/build

Publishing

bin/publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sourcestack-0.0.8.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sourcestack-0.0.8-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file sourcestack-0.0.8.tar.gz.

File metadata

  • Download URL: sourcestack-0.0.8.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for sourcestack-0.0.8.tar.gz
Algorithm Hash digest
SHA256 25763e1250ee4f14c164859113cb06ce82b8b18a5232835b2c92fbc890111379
MD5 c88bd00843e99291e584cae61565132a
BLAKE2b-256 2afa90c7acfd52d7cb0384b4c2dfc84a0fca110dbddd293aad5a28e6627c88ad

See more details on using hashes here.

File details

Details for the file sourcestack-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: sourcestack-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for sourcestack-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3855117fb53f009b6e851eb4034a4d250639582f75f0b395a306395ae233c70c
MD5 0d4726a4056c040357126caeb129b801
BLAKE2b-256 a3644882c6db4ef353831a8c778964d1323168379bfc2383222743c41fdba83b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page