{"id":17933663,"url":"https://github.com/keyan/narwhal","last_synced_at":"2025-04-03T11:24:17.860Z","repository":{"id":87742743,"uuid":"175690281","full_name":"keyan/narwhal","owner":"keyan","description":"Pre-fork worker model HTTP server","archived":false,"fork":false,"pushed_at":"2019-03-16T09:22:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T00:42:58.882Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keyan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-14T19:56:42.000Z","updated_at":"2021-09-29T19:10:05.000Z","dependencies_parsed_at":"2024-01-22T07:30:23.012Z","dependency_job_id":null,"html_url":"https://github.com/keyan/narwhal","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/keyan%2Fnarwhal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2Fnarwhal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2Fnarwhal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2Fnarwhal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keyan","download_url":"https://codeload.github.com/keyan/narwhal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246990645,"owners_count":20865511,"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-28T21:41:05.684Z","updated_at":"2025-04-03T11:24:17.833Z","avatar_url":"https://github.com/keyan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# narwhal\n\nA pre-fork worker model Python HTTP server based on the ideas and techniques used in [unicorn](https://bogomips.org/unicorn/) and it's Python port [Gunicorn](https://github.com/benoitc/gunicorn).\n\nThis is a learning exercise and not intend to be useful as standalone software. I am working on a potential blog post and hope this source will be a useful reference for others eventually.\n\n## Usage\n\nThere are no external dependencies, you only need to have Python3 installed.\n```\n$ ./narwhal.py --help\n\nusage: narwhal.py [-h] [-w WORKER_COUNT] [-p PORT] [-d]\n\nRun a pre-fork worker HTTP server\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -w WORKER_COUNT, --worker_count WORKER_COUNT\n                        The number of workers processes to run\n  -p PORT, --port PORT  The port to listen for requests on\n  -d, --debug           If set enables debug level logs\n```\n\nOnce running you can access `localhost:8080` (default port) in your browser, or via `curl`.\n\n## Performance\n\nSome quick benchmarking using [Siege](https://www.joedog.org/siege-manual/) showed great performance:\n```\nTransactions:\t\t       10000 hits\nAvailability:\t\t      100.00 %\nElapsed time:\t\t        7.94 secs\nData transferred:\t        0.31 MB\nResponse time:\t\t        0.08 secs\nTransaction rate:\t     1259.45 trans/sec\nThroughput:\t\t        0.04 MB/sec\nConcurrency:\t\t       94.59\nSuccessful transactions:       10000\nFailed transactions:\t           0\nLongest transaction:\t        0.33\nShortest transaction:\t        0.01\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fnarwhal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyan%2Fnarwhal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fnarwhal/lists"}