{"id":34036223,"url":"https://github.com/cool-dev-guy/pydreamlo","last_synced_at":"2026-04-01T19:13:16.951Z","repository":{"id":195193440,"uuid":"692443685","full_name":"cool-dev-guy/pydreamlo","owner":"cool-dev-guy","description":"Simple,free and easy-to-use Leader Board system using dreamlo.","archived":false,"fork":false,"pushed_at":"2023-09-17T04:47:58.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T11:55:30.427Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cool-dev-guy.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":"2023-09-16T13:51:02.000Z","updated_at":"2023-09-17T03:53:06.000Z","dependencies_parsed_at":"2023-09-16T23:27:05.095Z","dependency_job_id":null,"html_url":"https://github.com/cool-dev-guy/pydreamlo","commit_stats":null,"previous_names":["cool-dev-guy/pydreamlo"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/cool-dev-guy/pydreamlo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-dev-guy%2Fpydreamlo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-dev-guy%2Fpydreamlo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-dev-guy%2Fpydreamlo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-dev-guy%2Fpydreamlo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cool-dev-guy","download_url":"https://codeload.github.com/cool-dev-guy/pydreamlo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-dev-guy%2Fpydreamlo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31029904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T06:08:13.374Z","status":"ssl_error","status_checked_at":"2026-03-27T06:08:07.217Z","response_time":164,"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":[],"created_at":"2025-12-13T20:15:01.238Z","updated_at":"2026-04-01T19:13:16.943Z","avatar_url":"https://github.com/cool-dev-guy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PYDREAMLO\nSimple,free and easy-to-use Leader Board system using https://dreamlo.com.\n\n### Install\n- Use pip to install\n  ```bash\n    $ pip install pydreamlo\n    ```\n    \n    or\n    \n    ```bash\n    $ pip3 install pydreamlo\n    ```\n    \n    or\n    \n    ```bash\n    $ python -m pip install pydreamlo\n    ```\n- or Build from source\n- or Copy the `src/pydreamlo` folder to your project directory and import it.\n### TODO:\n- emscripten support(pygame-wasm).\n  requests calls need to managed\n- code rewrite.\n### Usage:\n- Create a dreamlo url by going to https://dreamlo.com\nFor using this LeaderBoard you need 2 `url`s (`private dreamlo url` and `public dreamplo url`)\n\n    - Creating the `url`s\n        - `private url` : copy the `private-key` given by dreamlo and join it with the url.(the protocol may be different)\n          \n            ```python\n            pr_key = \"http://dreamlo.com/{your_private_key}\"\n            ```\n            \n        - `private url` : copy the `public-key` given by dreamlo and join it with the url.(the protocol may be different)\n          \n            ```python\n            pu_key = \"http://dreamlo.com/{your_public_key}\"\n            ```\n            \n- Use `dreamlopy` to work with your leader board. \n    ```python\n    from pydreamlo import LeaderBoard\n    pr_key = \"http://dreamlo.com/{your_private_key}\"\n    pu_key = \"http://dreamlo.com/{your_public_key}\"\n\n    cool_leader_board = LeaderBoard(pr_key,pu_key)\n    ```\n    The module `dreamlopy` is initialized,now you use the methods in the module to perform the operations.\n    \n    - `.add(username,score,time,text)`\n\n        `add()` is used to add a new user to the leader board. `username` and `score` are necessary parameters.The `time` is the time taken to finish.(Sorting based on time is available)\n        ```python\n        cool_leader_board.add(\"some-user\",100,10,\"user is cool\")\n        ```\n        returns a string \"OK\" if sucessful\n    - `.delete(username)`\n\n        `delete()` is used to delete a specific user from the leaderboard.`username` is the only parameter(Note:only one user can have a specific username)\n        ```python\n        cool_leader_board.delete(\"some-user\")\n        ```\n    - `.clear()`\n\n        `clear()` is used to clear the entire leaderboard.\n        ```python\n        cool_leader_board.clear()\n        ```\n    - `.get(index:int = 0,upto:int = 0,rtype:str = 'json',sort:str='')`\n        \n        used to get the leaderboard data.\n        - `index` defines the index from where should the results start showing.(default is 0)\n        - `upto` defines the number of users to return after the index.(default is 0,so it will return the entire leaderboard)\n        - `rtype` defines the return type of the `get` method.\n            - `rtype = \"json\"`\n            - `rtype = \"xml\"`\n            - `rtype = \"pipe\"`\n            - `rtype = \"quote\"`\n        - `sort` is an additional command return the sorted leaderboard based on `time` taken by the user\n            - `sort='a'` for ascending(less time first)\n            - `sort='d'` for descending(greter time first)\n            ```python\n            \"\"\"\n            This will return all the leaderboard data starting from index 0 to (index 0 + next 50 spaces) and will return as a \"json\" and arranges the leaderboard based on time(the user with less time shows at first).\n            \"\"\"\n            cool_leader_board.get(0,50,\"json\",'a')\n            ```\n    - `.get_new_sorted(index:int = 0,upto:int = 0,rtype:str = 'json',sort:str='')`\n\n        used to retrieve the leaderboard with respect to time score's was added.(same parameter as `.get()`)\n    - `.get_user(username,rtype)`\n\n        used to get deatils of a specific user.\n\u003e NOTE: This uses dreamlo service and cool-dev-guy is not related with the service,this module is just a python package for using the dreamlo service which was made for unity engine.So use the package at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcool-dev-guy%2Fpydreamlo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcool-dev-guy%2Fpydreamlo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcool-dev-guy%2Fpydreamlo/lists"}