{"id":28164046,"url":"https://github.com/superkabuki/nstuff","last_synced_at":"2026-03-01T01:02:44.421Z","repository":{"id":292492569,"uuid":"981073524","full_name":"superkabuki/nstuff","owner":"superkabuki","description":"Python3 CGI GET / POST data (Replacement for cgi minifieldstorage)","archived":false,"fork":false,"pushed_at":"2026-02-25T10:08:39.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-25T14:50:54.198Z","etag":null,"topics":["cgi","fastcgi","get","minifieldstorage","post","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superkabuki.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-10T09:26:23.000Z","updated_at":"2026-02-25T10:08:44.000Z","dependencies_parsed_at":"2025-05-10T10:30:31.787Z","dependency_job_id":"1908f77c-d407-4fdb-8a28-5f8be1d6a013","html_url":"https://github.com/superkabuki/nstuff","commit_stats":null,"previous_names":["superkabuki/nstuff","superkabuki/nstuff-kabuki"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/superkabuki/nstuff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2Fnstuff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2Fnstuff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2Fnstuff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2Fnstuff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superkabuki","download_url":"https://codeload.github.com/superkabuki/nstuff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2Fnstuff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29957128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cgi","fastcgi","get","minifieldstorage","post","python3"],"created_at":"2025-05-15T11:15:02.059Z","updated_at":"2026-03-01T01:02:44.155Z","avatar_url":"https://github.com/superkabuki.png","language":"Python","readme":"[Install](#install)\n# nstuff\n### CGI GET / POST data \n\n#### Replacement for the now defunct cgi MiniFieldStorage\n\n## Parse CGI GET and/or POST data into a dict\n\n#### With a POST request you can parse POST data and the url query string. \nExample: Return POST and GET data from a request as JSON \n* nstuff.cgi\n```py3\n#!/usr/bin/env python3\n\n\"\"\"\nExample nstuff cgi script to show GET and POST data.\n\n\"\"\"\nimport json\nfrom nstuff import nstuff\n\nif __name__ == '__main__':\n    formstuff = nstuff()\n    print(\"Content-type: text/Json\\n\")\n    print(json.dumps(formstuff))\n\n\n```\n* GET\n```js\na@fu:~$ curl  https://iodisco.com/cb/nstuff.cgi?you=me\n\n{\"you\": \"me\"}\n\n```\n* POST\n```js\na@fu:~$ curl -d \"say\"=\"Hey Koolaid\" https://iodisco.com/cb/nstuff.cgi\n\n{\"say\": \"Hey Koolaid\"}\n\n```\n* Both in a POST\n```js\na@fu:~$ curl -d \"say\"=\"Hey Koolaid\" https://iodisco.com/cb/nstuff.cgi?adrian=iscool\n\n{\"adrian\": \"iscool\", \"say\": \"Hey Koolaid\"}\n\n```\n# INSTALL\n\n* Python3\n\n```py3\npython3 -mpip install nstuff \n```\n* __pypy3__\n\n```py3\npypy3 -mpip install nstuff \n```\n\n* depending on the situation, you may need to add\n\n```py3\n--break-system-packages\n```\n\n### The only method you need to call is nstuff() and it will return a dict of the request POST and GET vars . If you're just difficult, you can also call getstuff() or poststuff() directly and they will return the GET query string vars and POST data vars respectively.\n![image](https://github.com/user-attachments/assets/227fb62c-d027-492b-a6b1-71c191bcb5b3)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperkabuki%2Fnstuff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperkabuki%2Fnstuff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperkabuki%2Fnstuff/lists"}