https://github.com/clariah/generic_http_cache

https://github.com/clariah/generic_http_cache

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: CLARIAH
  • Language: Python
  • Default Branch: main
  • Size: 16.6 KB
Statistics
  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme

README.md

Generic Cache

Generic cache is a caching server over http, the url sent to the server is checked for existence in the key value store.

How to use

The cache_settings.py file contains the configuration for the server. python cache_type = in_mem_cache.InMemoryCache # or redis_cache.RedisCache kwargs = { 'host': 'redis', 'port': 6379, 'db': 0 } ttl = 604800 # (1 week) accept_header_key = "accept" - The cache_type (required) variable can be set to either in_mem_cache.InMemoryCache or redis_cache.RedisCache. - The ttl (required) is the time to live for the key in seconds. - The accept_header_key (required) is the url parameter we are going to use to when fetching from origin as the http accept header. - Others are optional and can be set as required. Like the kwargs variable which is a dictionary of the connection parameters for the redis server.

NOTE The corresponding interface for the cache type should "know" how to handle the required config items.

Running the server

To run the server, you can use the following command: - For dev build bash docker compose -f docker-compose.yml up -d

  • For prod build bash docker compose up -d

Owner

  • Name: CLARIAH
  • Login: CLARIAH
  • Kind: organization

CLARIAH offers humanities scholars a Common Lab providing access to large collections of digital resources and innovative tools for research

GitHub Events

Total
  • Member event: 1
  • Push event: 4
  • Create event: 2
Last Year
  • Member event: 1
  • Push event: 4
  • Create event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 5
  • Total Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Vic Ding q****g@d****l 5
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

.github/workflows/docker-build.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v3.2.0 composite
  • docker/login-action v2.1.0 composite
  • docker/metadata-action v4.1.1 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
Dockerfile docker
  • ghcr.io/astral-sh/uv python3.12-alpine build
docker-compose-dev.yml docker
  • generic_cache latest
  • redis latest
pyproject.toml pypi
  • cachetools *
  • fastapi *
  • gunicorn *
  • httpx *
  • redis *
  • requests *
  • uvicorn *
uv.lock pypi
  • annotated-types 0.7.0
  • anyio 4.8.0
  • cachetools 5.5.2
  • certifi 2025.1.31
  • charset-normalizer 3.4.1
  • click 8.1.8
  • colorama 0.4.6
  • fastapi 0.115.11
  • generic-cache 0.1.0
  • gunicorn 23.0.0
  • h11 0.14.0
  • httpcore 1.0.7
  • httpx 0.28.1
  • idna 3.10
  • packaging 24.2
  • pydantic 2.10.6
  • pydantic-core 2.27.2
  • redis 5.2.1
  • requests 2.32.3
  • sniffio 1.3.1
  • starlette 0.46.0
  • typing-extensions 4.12.2
  • urllib3 2.3.0
  • uvicorn 0.34.0