{"id":23712500,"url":"https://github.com/lazypwny751/libauthpy","last_synced_at":"2026-02-08T08:30:18.616Z","repository":{"id":211545564,"uuid":"727852083","full_name":"lazypwny751/libauthpy","owner":"lazypwny751","description":"simple authentication library written in python3","archived":false,"fork":false,"pushed_at":"2023-12-19T11:55:09.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T19:59:10.623Z","etag":null,"topics":["authentication-library","authlib","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazypwny751.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}},"created_at":"2023-12-05T17:54:07.000Z","updated_at":"2023-12-13T14:26:45.000Z","dependencies_parsed_at":"2023-12-19T14:49:44.961Z","dependency_job_id":null,"html_url":"https://github.com/lazypwny751/libauthpy","commit_stats":null,"previous_names":["lazypwny751/libauthpy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Flibauthpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Flibauthpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Flibauthpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Flibauthpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazypwny751","download_url":"https://codeload.github.com/lazypwny751/libauthpy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800489,"owners_count":19699127,"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":["authentication-library","authlib","python3"],"created_at":"2024-12-30T19:59:15.814Z","updated_at":"2026-02-08T08:30:18.561Z","avatar_url":"https://github.com/lazypwny751.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libauthpy\nsimple authentication library written in python3.\n\n![test](https://github.com/lazypwny751/libauthpy/assets/54551308/06c42f53-8da2-4f5f-b7ba-1b781b85c40a)\n\n## Installation\n\n### Using pip3\n```sh\npip3 install git+https://github.com/lazypwny751/libauthpy.git\n```\n\n### Using make\n```sh\ngit clone https://github.com/lazypwny751/libauthpy.git\ncd libauthpy\nmake install\n```\n\n## Usage\nGeneral purpose of the library, manage your authentication requests from cathed by an automation tool or social media bots.\n\n### register\nthis function sends registration request for admins, and admin can submit it using utility tools for tools.\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.register(\"my user\") # \u003e bool\n```\n\n### inQueue\nthis function check up the user is in register table or not, so that's mean if the user has registered?\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.inQueue(\"my user\") # \u003e bool\n```\n\n### listRegister\nthis function return's index of register table, it gives an array.\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.listRegister() # \u003e array\n```\n\n### dropRegister\nafter authentcation you delete the user from register table.\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.dropRegister(\"my user\") # \u003e bool\n```\n\n### authenticate\nthis function allows to write a user to authenticated table, also it should take an boolean \nparameter called by \"authlvl (authentication level)\" 0 means allowed, 1 mean banned, default True.\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.authenticate(\"my user\", authlvl=True) # \u003e bool\n```\n\n### listAuthentication\nthis function will be return's index of authentication table content, it gives an array.\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.listAuthentication() # \u003e array\n```\n\n### inAuthentication\nthis function just check's the user in the auth table or not, it is not cheks for banned or not.\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.inAuthentication(\"my user\") # \u003e bool\n```\n\n### isAuthenticated\nthis functions check's the user in the auth table and authlvl value is 0? because 0 means True\nand 1 means False.\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.isAuthenticated(\"my user\") # \u003e bool\n```\n\n### dropAuthentication\nyou can remove any user from authentication (you can ban any user).\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nauth.dropAuthentication(\"my user\") # \u003e bool\n```\n\n\n\n## Example\n```py\nimport libauth\nauth = libauth.Auth(\"mydatabase.db\")\n\nuser = \"my user\"\n\nauth.register(user)\n\nif auth.inQueue(user):\n    print(user, \"is in queue.\")\n\nif auth.authenticate(user, authlvl=True):\n    if auth.dropRegister(user):\n        print(user, \"authenticated.\")\n\nif auth.isAuthenticated(user):\n    print(user, \"is authenticated user.\")\n    if auth.dropAuthentication(user):\n        print(user, \"dropped himself from auth table.\")\n```\n\nand you will see:\n```\norange cat is in queue.\norange cat authenticated.\norange cat is authenticated user.\norange cat dropped himself from auth table.\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n[GPL3](https://choosealicense.com/licenses/gpl-3.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazypwny751%2Flibauthpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazypwny751%2Flibauthpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazypwny751%2Flibauthpy/lists"}