{"id":18463700,"url":"https://github.com/alvii147/crimestatsanalysis","last_synced_at":"2026-05-02T20:36:21.276Z","repository":{"id":91696102,"uuid":"436081026","full_name":"alvii147/CrimeStatsAnalysis","owner":"alvii147","description":"Crime statistics database \u0026 analysis","archived":false,"fork":false,"pushed_at":"2021-12-25T20:24:35.000Z","size":9772,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T16:55:53.051Z","etag":null,"topics":["command-line-interface","crime","data-mining","database","mysql"],"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/alvii147.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":"2021-12-08T01:42:33.000Z","updated_at":"2022-12-26T22:39:27.000Z","dependencies_parsed_at":"2023-03-02T01:00:39.313Z","dependency_job_id":null,"html_url":"https://github.com/alvii147/CrimeStatsAnalysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alvii147/CrimeStatsAnalysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2FCrimeStatsAnalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2FCrimeStatsAnalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2FCrimeStatsAnalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2FCrimeStatsAnalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvii147","download_url":"https://codeload.github.com/alvii147/CrimeStatsAnalysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2FCrimeStatsAnalysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["command-line-interface","crime","data-mining","database","mysql"],"created_at":"2024-11-06T09:07:43.805Z","updated_at":"2026-05-02T20:36:16.269Z","avatar_url":"https://github.com/alvii147.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crime Stats Analysis\n\nThis project involves the collection of crime records datasets from law enforcement departments in UK and US, and the process of developing an optimally designed database and a client interface for the definition, manipulation and storage of this data. Please see the [report](https://alvii147.github.io/CrimeStatsAnalysis/report/Report) or the [video presentation](https://youtu.be/aTREWcHJalw) for more information.\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/alvii147/CrimeStatsAnalysis.git\n```\n\nNavigate into repository directory:\n\n```bash\ncd CrimeStatsAnalysis/\n```\n\nCreate and activate Python virtual environment (optional):\n\n```bash\npython3 -m venv env\n# Linux \u0026 MacOS\nsource env/bin/activate\n# Windows\nsource env/Scripts/activate\n```\n\nInstall dependencies:\n\n```bash\npip3 install -r requirements.txt\n```\n\n## Configuration\n\nStore configuration data into file `src/MySQLutils/config.ini`:\n\n```bash\necho [mysqlconfig] \u003e src/MySQLutils/config.ini\necho host = \u003chostname\u003e \u003e\u003e src/MySQLutils/config.ini\necho user = \u003cusername\u003e \u003e\u003e src/MySQLutils/config.ini\necho password = \u003cpassword\u003e \u003e\u003e src/MySQLutils/config.ini\necho database = \u003cdatabasename\u003e \u003e\u003e src/MySQLutils/config.ini\n```\n\nFor `\u003chostname\u003e` use the hostname of the database, for eg. `marmoset04.shoshin.uwaterloo.ca`.\n\nFor `\u003cusername\u003e` and `\u003cpassword\u003e` use your MySQL username and password.\n\nFor `\u003cdatabasename\u003e` use the name of your database.\n\n`config.ini` should then look something like this:\n\n```ini\n[mysqlconfig]\nhost = marmoset04.shoshin.uwaterloo.ca\nuser = waterlooid\npassword = mylittlepony\ndatabase = db356_waterlooid\n```\n\nStoring configuration in file is optional, and if not done, the program will continuously prompt for user input every time a database connection is attempted for every missing configuration variable.\n\n\u003e :warning: **Warning**\n\u003e\n\u003e Storing the password in the configuration file is NOT recommended. Currently, the `.gitignore` is written to ignore the configuration file when committing to version control system. However, this is not completely fool-proof as the configuration file may be committed accidentally if the `.gitignore` is missing or renamed.\n\n## Command-Line Interface\n\nOnce the installation and configuration are complete, run the `crime.py` python script (while inside the virtual environment) to create the appropriate tables, load the data and transfer the data into the right tables:\n\n```bash\ncd src/\npython3 crime.py\n```\n\n\u003cimg alt=\"Secret Ingredient Meme\" src=\"docs/img/secret_ingredient.png\" width=\"600\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvii147%2Fcrimestatsanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvii147%2Fcrimestatsanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvii147%2Fcrimestatsanalysis/lists"}