{"id":15003370,"url":"https://github.com/vincentchov/lansweeper_flask","last_synced_at":"2026-01-30T15:33:06.751Z","repository":{"id":91149142,"uuid":"95226481","full_name":"vincentchov/lansweeper_flask","owner":"vincentchov","description":"An extension to the Lansweeper SQL Server front end","archived":false,"fork":false,"pushed_at":"2018-08-19T14:11:58.000Z","size":584,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T22:42:40.436Z","etag":null,"topics":["lansweeper","ms-sql-server","python","records","sql"],"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/vincentchov.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":"2017-06-23T14:13:42.000Z","updated_at":"2019-05-08T21:33:39.000Z","dependencies_parsed_at":"2023-04-20T13:02:58.101Z","dependency_job_id":null,"html_url":"https://github.com/vincentchov/lansweeper_flask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vincentchov/lansweeper_flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentchov%2Flansweeper_flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentchov%2Flansweeper_flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentchov%2Flansweeper_flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentchov%2Flansweeper_flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincentchov","download_url":"https://codeload.github.com/vincentchov/lansweeper_flask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentchov%2Flansweeper_flask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: 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":["lansweeper","ms-sql-server","python","records","sql"],"created_at":"2024-09-24T18:58:08.773Z","updated_at":"2026-01-30T15:33:06.734Z","avatar_url":"https://github.com/vincentchov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lansweeper-Flask\nThis project uses Kenneth Reitz's [Records](https://github.com/kennethreitz/records)\nlibrary in addition to PyODBC to connect to the lansweeperdb Microsoft SQL Server database.  \nRecords makes it easier to export results of SQL queries and make it easier to\nexplore the database to learn its schema.  It uses ```docopt``` to handle argument parsing\nso you can use it as a command-line application, or launch a Flask web interface.\n\n## Setup from source code\n1. Install [Python 3.x](https://www.python.org/downloads/) with pip.\n2. Install [Microsoft ODBC Driver 11 for SQL Server](https://www.microsoft.com/en-us/download/details.aspx?id=36434)\nwhich you may already have in Windows, but typically not in other systems.\n2. If you're in Windows, open up the Data Sources program.  If you're in Linux,\nedit the ~/.odbc.ini file in the next step.\n3. Create a DSN (Data Source Name) called ```PSI-SQL-DSN``` that connects to the ```PSI-SQL```\nserver, defaulting to the ```lansweeperdb``` database and use SQL authentication.\n4. Update the ```server``` variable to match the name of the DSN if you chose\nsomething other than ```PSI-SQL-DSN```.\n6. Create and activate a virtual environment\n7. Install dependencies: ```pip install -r requirements.txt```\n8. Profit!\n\n\u003c!--  \n## Setup using executables\n1. See step 2 from above.\n2. See step 3 from above.\n--\u003e\n\n## How to get a report (command-line)\nAll you have to do is run ```lansweeper_all.py``` and enter the number for the\nreport type you want when asked for it.  For example, if you want to see a\ntable for Administrative / Business Development tickets, activate your virtual\nenvironment and then run ```python lansweeper_all.py``` at which point it will\nlist out the different options.  Enter 0 and hit enter.  The resulting table\nwill be placedin a .xlsx file in the Reports folder called ```admin_bus_dev.xlsx```.\n\n## How to get a report (web-interface)\nLaunch the Flask web app by running ```python run.py``` and visit the application\nin your web browser at ```localhost:5000```.  From there you can click on the report\ntype you would like.\n\n\u003c!--  \n## How to get a Report (source code)\nAll you have to do is run the executable file in your Command Prompt/Terminal\nand enter the number for the report type you want when asked for it.  \nFor example, if you want to see a table for Administrative / Business Development\ntickets, drag and drop the executable at which point it will list out the\ndifferent options.  Enter 0 and hit enter.  The resulting table will be placed\nin a .xlsx file in the Reports folder called ```admin_bus_dev.xlsx```.\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentchov%2Flansweeper_flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentchov%2Flansweeper_flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentchov%2Flansweeper_flask/lists"}