{"id":16403298,"url":"https://github.com/tuomas2/cached_file_converter","last_synced_at":"2026-06-13T06:32:48.252Z","repository":{"id":33771091,"uuid":"37427738","full_name":"tuomas2/cached_file_converter","owner":"tuomas2","description":"Django app: cached file converter","archived":false,"fork":false,"pushed_at":"2018-05-20T15:24:35.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-14T06:31:51.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuomas2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-14T20:06:34.000Z","updated_at":"2018-05-20T15:24:37.000Z","dependencies_parsed_at":"2022-07-12T16:10:57.127Z","dependency_job_id":null,"html_url":"https://github.com/tuomas2/cached_file_converter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuomas2/cached_file_converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fcached_file_converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fcached_file_converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fcached_file_converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fcached_file_converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuomas2","download_url":"https://codeload.github.com/tuomas2/cached_file_converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fcached_file_converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34275067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T05:48:53.283Z","updated_at":"2026-06-13T06:32:48.234Z","avatar_url":"https://github.com/tuomas2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====\nSimple cached file converter service (Django 2.0 app)\n=====\n\n1. Check MD5 sum of a file on client side to avoid waste of bandwith\n2. Is file cached on server?\n  1. Yes\n    1. If file is cached, get immediately a download link for cached converted file\n  2. No\n    1. Upload file for conversion\n    2. Convert file on server (separate task processor)\n    3. Get a link for user to download converted file\n\nQuick start\n-----------\n\n1. Add \"cached_file_converter\" to your INSTALLED_APPS setting like this::\n\n    INSTALLED_APPS = (\n        ...\n        'cached_file_converter',\n    )\n\nand set up some settings:\n\n    # the directory where original files will be uploaded\n    ORIGINAL_FILES = os.path.join(BASE_DIR, 'original')\n    # the directory where converted files will be cached\n    CONVERTED_FILES = os.path.join(BASE_DIR, 'converted')\n    # increase this if you want all your files converted again\n    CONVERTER_REVISION = 0\n    # set up / import your converter function here.\n    def convert(input_file, output_files_and_options, task):\n        # output_files_and_options is a dict of form {'Option set 1': filename, options}\n        for file, options in output_files_and_options.values():\n            do_some_conversion(file, options)\n\n    CONVERTER_FUNC = convert\n\n    # Define options for differnet conversions that take place\n    CONVERTER_OPTIONS = {'Option set 1': dict(), 'Option set 2': dict(option2=True)}\n\n    # what do you want visible converted filename to be to the end user\n    def get_download_filename(orig_filename):\n        return orig_filename.rsplit('.', 1)[0] + '.zip'\n\n    GET_DOWNLOAD_FILENAME = get_download_filename\n\n2. Include the polls URLconf in your project urls.py like this:\n\n    url(r'^cached_file_converter/', include('cached_file_converter.urls')),\n\n3. Run `python manage.py migrate` to create the polls models.\n\n4. Start development server\n    python manage.py runserver\n\nand start task prosessor\n\n    python manage.py process_tasks\n\n    and visit http://127.0.0.1:8000/cached_file_converter/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuomas2%2Fcached_file_converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuomas2%2Fcached_file_converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuomas2%2Fcached_file_converter/lists"}