Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: outdated

PYDREAMLO

Simple,free and easy-to-use Leader Board system using https://dreamlo.com.

Usage:

  • Create a dreamlo url by going to https://dreamlo.com For using this LeaderBoard you need 2 urls (private dreamlo url and public dreamplo url)

    • Creating the urls
      • private url : copy the private-key given by dreamlo and join it with the url.(the protocol may be different)

        pr_key = http://dreamlo.com/{your_private_key}
        
      • private url : copy the public-key given by dreamlo and join it with the url.(the protocol may be different)

        pu_key = http://dreamlo.com/{your_public_key}
        
  • Use dreamlopy to work with your leader board.

    from pydreamlo import LeaderBoard
    pr_key = http://dreamlo.com/{your_private_key}
    pu_key = http://dreamlo.com/{your_public_key}
    
    cool_leader_board = LeaderBoard(pr_key,pu_key)
    

    The module dreamlopy is initialized,now you use the methods in the module to perform the operations.

    • .add(username,score,time,text)

      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)

      cool_leader_board.add("some-user",100,10,"user is cool")
      

      returns a string "OK" if sucessful

    • .delete(username)

      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)

      cool_leader_board.delete("some-user")
      
    • .clear()

      clear() is used to clear the entire leaderboard.

      cool_leader_board.clear()
      
    • .get(index:int = 0,upto:int = 0,rtype:str = 'json',sort:str='')

      used to get the leaderboard data.

      • index defines the index from where should the results start showing.(default is 0)
      • upto defines the number of users to return after the index.(default is 0,so it will return the entire leaderboard)
      • rtype defines the return type of the get method.
        • rtype = "json"
        • rtype = "xml"
        • rtype = "pipe"
        • rtype = "quote"
      • sort is an additional command return the sorted leaderboard based on time taken by the user
        • sort='a' for ascending(less time first)
        • sort='d' for descending(greter time first)
        """
        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).
        """
        cool_leader_board.get(0,50,"json",'a')
        
    • .get_new_sorted(index:int = 0,upto:int = 0,rtype:str = 'json',sort:str='')

      used to retrieve the leaderboard with respect to time score's was added.(same parameter as .get())

    • .get_user(username,rtype)

      used to get deatils of a specific user.

Metadata

Release files for pydreamlo-cool-guy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydreamlo-cool-guy 0.0.1
File Size Uploaded Provenance
pydreamlo_cool-guy-0.0.1.tar.gz 15.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pydreamlo-cool-guy 0.0.1
File Interpreter ABI Platform
pydreamlo_cool_guy-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 30.9 kB

Release files / pydreamlo_cool-guy-0.0.1.tar.gz

Download URL pydreamlo_cool-guy-0.0.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
37b22fb314011ef27f360c7a180843d14151adee9026b9930ca11baf30af42e6
BLAKE2b-256 checksum
How to use checksums
64440b876c099924675b65df44c556e68ce93012d6152ee00389f85f9dca64a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / pydreamlo_cool_guy-0.0.1-py3-none-any.whl

Download URL pydreamlo_cool_guy-0.0.1-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e566e943f1db2fe49d7b59ab38c890e2878959e44cc87cd6a177b9e5fef80a3b
BLAKE2b-256 checksum
How to use checksums
e826c754730350c433565b7abfb4f3fc9add8b117485476550632ff314622c12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for pydreamlo-cool-guy 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page