{"id":21040757,"url":"https://github.com/upstreamdata/pyasic_web","last_synced_at":"2025-05-15T16:33:26.241Z","repository":{"id":119174141,"uuid":"509888194","full_name":"UpstreamData/pyasic_web","owner":"UpstreamData","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-08T14:25:02.000Z","size":1294,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T11:43:51.747Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UpstreamData.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":"2022-07-03T00:23:39.000Z","updated_at":"2024-05-08T14:25:06.000Z","dependencies_parsed_at":"2024-01-03T18:42:53.412Z","dependency_job_id":"bb55375e-81dd-439c-8f3f-fc5c47b298ce","html_url":"https://github.com/UpstreamData/pyasic_web","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/UpstreamData%2Fpyasic_web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpstreamData%2Fpyasic_web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpstreamData%2Fpyasic_web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpstreamData%2Fpyasic_web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpstreamData","download_url":"https://codeload.github.com/UpstreamData/pyasic_web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254377469,"owners_count":22061145,"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-11-19T13:47:53.424Z","updated_at":"2025-05-15T16:33:25.267Z","avatar_url":"https://github.com/UpstreamData.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyasic_web\n\npyasic_web is a web server for controlling miners and viewing miner data via pyasic, and is fully customizable.\n\n## Running\n- Install requirements (ideally in a virtual environment) with `pip install -r requirements.txt`\n- Run with `python main.py` from this directory.\n- You should now have access on port 8080, login with username `admin` and password `pass`.\n\n## Login\n![Login_Page](https://github.com/UpstreamData/pyasic_web/assets/75442874/a9d27160-2447-4556-89f6-39fa78ca5bd1)\n\n## Home Page - No Miners\n![Home_Page_1](https://github.com/UpstreamData/pyasic_web/assets/75442874/0f2257d1-c55e-4411-bed9-3a22a3a6d172)\n\n## Scan Page\n![Scan_Page](https://github.com/UpstreamData/pyasic_web/assets/75442874/482a8275-8406-4488-8600-1fa421294dcb)\n\n## Home Page - With Miners\n![Home_Page_2](https://github.com/UpstreamData/pyasic_web/assets/75442874/9bb3b856-474d-40df-90b1-130c5032daf6)\n\n## Miner Page\n![Miner_Page](https://github.com/UpstreamData/pyasic_web/assets/75442874/8e851728-7def-429e-b97f-aee5600d0620)\n\n## User Management\n![User_Management](https://github.com/UpstreamData/pyasic_web/assets/75442874/f260cc21-49c9-4a2f-b5e8-4cfdaf60d667)\n\n## Card Management\n![Card Management](https://github.com/UpstreamData/pyasic_web/assets/75442874/3332c483-409e-46f8-8a5f-019f6439ff5e)\n\n## API\n![API](https://github.com/UpstreamData/pyasic_web/assets/75442874/5683b3ad-8e11-45a3-9c57-ee43cb5d97aa)\n\nHere is an example of how to use the API for this server.\n\n```python3\nimport httpx\nimport asyncio\n\nPYASIC_API_LOC = \"localhost:8080\"\n\nasync def test():\n    login_data = httpx.post(f\"http://{PYASIC_API_LOC}/api/login/\", data={\"username\": \"admin\", \"password\": \"pass\"}).json()\n\n    header = {\n        \"Authorization\": f\"{login_data['token_type']} {login_data['access_token']}\"\n    }\n    miner_selector = {\n        \"miner_selector\": \"all\"\n    }\n    miner_data = httpx.post(f\"http://{PYASIC_API_LOC}/api/v1/miners/\", headers=header, data=miner_selector).json()\n    print(miner_data)\n\nasyncio.run(test())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupstreamdata%2Fpyasic_web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupstreamdata%2Fpyasic_web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupstreamdata%2Fpyasic_web/lists"}