{"id":16603396,"url":"https://github.com/dbrgn/churz","last_synced_at":"2025-09-28T16:30:46.656Z","repository":{"id":5179972,"uuid":"6354218","full_name":"dbrgn/churz","owner":"dbrgn","description":"Yet another simple URL shortener.","archived":false,"fork":false,"pushed_at":"2022-06-19T22:04:32.000Z","size":19,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-12T10:42:08.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrgn.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-23T14:45:52.000Z","updated_at":"2022-06-19T21:48:50.000Z","dependencies_parsed_at":"2022-08-19T15:20:23.229Z","dependency_job_id":null,"html_url":"https://github.com/dbrgn/churz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fchurz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fchurz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fchurz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fchurz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/churz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234452073,"owners_count":18834740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-12T00:49:58.887Z","updated_at":"2025-09-28T16:30:46.308Z","avatar_url":"https://github.com/dbrgn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Churz – Yet another simple URL shortener\n========================================\n\n\n*Churz* is yet another simple URL shortener in 40 SLOC.\n\nIt's written in Python 3 using `Bottle`_. Data is stored in a JSON file.\n\nThe name *Churz* is Swiss German for \"short\".\n\n\nInstall\n-------\n\n::\n\n    $ pip install -r requirements.txt\n\n\nRun\n---\n\n::\n\n    Usage:\n        churz.py [-p PORT] [-d DATABASE]\n        churz.py --help\n        churz.py --version\n\n    Options:\n        -p PORT      Port number [default: 9393].\n        -d DATABASE  Database file [default: data.db].\n\n\nUse\n---\n\nYou can create new shortlinks by POSTing to ``/``. The URL to be shortened should\nbe provided in a ``url`` field in your POST data. The response will return the\nshort URL in the response body text. ::\n\n    curl --data \"url=http://www.youtube.com/watch?v=J---aiyznGQ\" http://localhost:9393/\n\n\nsystemd\n-------\n\nThere's a systemd unit file called ``churz.service`` that can be used to run and\nmonitor churz as a system service. You can use it as follows:\n\n1. Adjust the path to the code and the virtualenv in the unit file\n2. Copy the unit file to ``/etc/systemd/system/``\n3. Run ``sudo systemctl start churz`` and ``sudo systemctl enable churz``\n\nIf you think a parametrizable unit file (think ``churz@-var-www-churz.service``)\nwould make sense, please open an issue on GitHub.\n\n\nDockerfile\n----------\n\nThe provided Dockerfile starts the service on port ``9393``. The user's uid is\n``14327`` and the data is on a volume mounted to ``/var/data``.\n\n\nLicense\n-------\n\nMIT License, see ``LICENSE`` file.\n\n\n.. _Bottle: http://bottlepy.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fchurz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fchurz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fchurz/lists"}