Saravanan666/pypi-org huggingface dataset:
Package: ostop
topA Cross-Platform Python implementation of 'top' command using Psutil.What top DoesTop is able to get most of the top information with the restrictions that
come with running it at the program level. Different statistics are shown
based on the operating system that this project is run on. top works on
MacOS, Linux, and Windows operating systems.How to Get Started With topPYPI InstallationYou can install top through running this command in your terminal:pipx install ostopOnce this command finishes running, you can then run commands in
these two different formats:ostopThe command with no extra parameters will make the program run
in an infinite loop forever until you close your terminal or
use a Keyboard Interrupt.ostop <integer value>The command with an integer value will make the program run
for the number of iterations/seconds you specify.Local InstallationYou can get started with top by cloning the repository and running this command:python src/top.pyin the base directory. Like the top command, this will run forever.
You can exit out of the program by entering a Keyboard Interrupt or exiting
your terminal altogether. You can also specify the amount of times you want
the program to run by giving an integer input. For example, you can run the
program for one iteration by writing this command:python src/top.py 1Running GatorGrade ChecksThis repository is able to be automatically assessed using GatorGrade.
These checks can be run from the repository's base directory by running this command
in the base directory if you already have GatorGrade installed:gatorgrade --config config/gatorgrade.ymlIf you do not have GatorGrade installed yet on your local machine, you can install
it by using this command:pip install gatorgradeThese checks ensure that files are formatted correctly with proficient levels of
polish and also run without crashing. GatorGrade checks are useful both
during and after development.
Package: os-tornado
A framework to organize tornado project and simplify development.Installpip installos-tornadoUsageCreate projectos-tornadostartproject new_projectWill create a project structure:new_project/
├── app
│   ├── extensions
│   │   ├── example_extension.py
│   │   ├── __init__.py
│   ├── request_handlers
│   │   ├── example_handler.py
│   │   ├── __init__.py
│   ├── __init__.py
│   ├── settings.py
└── manager.pyWrite your extensions and request handlersExtensionYou can implementsetup,run,cleanupas your need.Request handlerSeetornado.web — RequestHandler and Application classesYou can get extension inside request handler:self.application.manager.get_extenion(extension_name)Configure settings (app/settings.py)You can set tornado inner app settings and server settings with specified PREFIX:TORNADO_APP_SETTINGS_TORNADO_SERVER_SETTINGS_example:TORNADO_APP_SETTINGS_DEBUG = TrueRun serverpython manager.py runserverAdvanced Usageos_tornado.decorators.jsonifyjsonify returned dict and raised HTTPErrorexample:@jsonifyclassExampleHandler(RequestHandler):defget(self,*args,**kwargs):return{'status':'ok'}defpost(self,*args,**kwargs):raiseHTTPHandler(405)Unit Tests$ toxLicenseMIT licensed.
Package: ost-photometry
OST Photometry PackagePhotometry reduction and analysis package for theOST Observatoryof
the University of Potsdam.The package aims to provide easy-to-use data reduction and analysis
functionality for photometric observations made with the observatory's
telescopes and instruments. It is mainly used in the astrophysics laboratory
courses of the university and provides on-the-fly data reduction for the
data archive of the observatory. It is designed with these applications in
mind.RequirementsThe following Python packages provide the core functionality of this
package:ccdprocphotutilsastropyastroquerynumpyscipyuncertaintiesmathplotlibFor astrometric solutions a local installation of theastronomy.netsoftware is required.
Package: os-traits
os-traitsis an OpenStack library containing standardized trait strings.Traits are strings that represent a feature of a resource provider hosted by
thePlacementservice. This library contains the catalog of constants that
have been standardized in the OpenStack community to refer to a particular
hardware, virtualization, storage, network, or device trait.Free software: Apache licenseDocumentation:https://docs.openstack.org/os-traits/latest/Source:http://opendev.org/openstack/os-traitsBugs:https://storyboard.openstack.org/#!/project/openstack/os-traitsRelease Notes:https://docs.openstack.org/releasenotes/os-traits
Package: ostrat
ostRATOpen Source Telegram RAT- Remote PC access via Telegram Bot.SourceForge -ostRAT | SourceForgePyPi -ostRAT | PyPiInstallationInstall the current version withPyPI:pipinstallostratOr SourceForge:ostRAT download | SourceForgeUsageAfter installing ostrat, create a .py file and type "import ostrat" ​​into it. Save and run it.Enter id and token, system.py in local directoryRun the system.py file and use the ostrat.SettingsYou can get a token from @BotFather in Telegram.It looks like "1111100000:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaa"You can get a id from @myidbot in Telegram.It looks like "123456789"Exampleimportostratostrat.create()ContributingBugs, reports and/or pull requests are welcome.LicenseOSI-Approved Open Source » GNU General Public License version 3.0GPLv3AuthorAlexey Avilov
Telegram:@Iexek2022 lexek
Package: ostree
You can pull a Docker container:pipinstallostree
ostreepullpython:3.7-alpine./alpineAnd run it with systemd-nspawn:sudosystemd-nspawn--directory./alpinepython

Spawningcontaineralpineon/home/denis/alpine.
Press^]threetimeswithin1stokillcontainer.
TimezoneUTCdoesnotexistincontainer,notupdatingcontainertimezone.
Python3.7.0(default,Aug222018,20:39:59)[GCC6.4.0]onlinux
Type"help","copyright","credits"or"license"formoreinformation.
>>>WarningThis is alpha-quality software. Things are intended to break.Supported RegistriesThe following registries are currently supported:Docker (public registry only)Google Container Registry (public, private with service account and json keyfile)RequirementsPOSIXPython 3.6+Run the Testspipinstall-e'.[test]'py.testostreeConventionsOstree followsPEP8as closely as possible. To validate it run:pipinstall-e'.[test]'flake8ostreeOstree usesSemantic Versioning.LicenseOstree is released under the MIT licenseChangelog0.1.1 (2018-09-07)Adds environment variables for OSTREE_AUTH, OSTREE_CACHE and OSTREE_PROTOCOL.
[href]0.1.0 (2018-09-06)Adds support for Google Container Registry.
[href]Implements cache purging.
[href]Shows an error if no protocol is given.
[href]Changes the cache path to~/.cache/seantis/ostreefor non-root users.
[href]0.0.0 (2018-08-24)Initial Release.
[href]
Package: ost-znap2
Znap2 is a universal ZoDB snapshotter. It allows making multiple snapshots of
ZoDB database(s) and restoring the database(s) to any past snapshot.UsageBefore we make any snapshots, we need to intialize the snapshot storage:znap2 init <db-file> [...]This creates .znap2 directory that will contain the configuration and all
snapshots. Initially only configuration file is created and the length of all
database files is recorded there.After the storage is initialized we can make snapshots:znap2 save <snapshot-id>This will store the tail of each database file that the storage is tracking
and a copy of its index file. This information is sufficient to restore the
snapshot of ZoDB because all writing to the main database file always happens
at the end.To list available snapshots use the following command:znap2 listSome time later we can revert to an earlier stored snapshot:znap2 restore <snapshot-id>This will truncate the databases to their size at the time of initialization,
then append the stored tails and replace the index files with stored copies of
the index files.Finally the snapshots that are no longer needed can be deleted with:znap2 delete <snapshot-id>Note that packing the database will invalidate all snapshots. If you need to
pack the database, delete the storage and start over.
Package: osu
osu.pyosu.py is a python library that emulates part of the online functionality of the osu! stable client.IMPORTANT:Use this library at your own risk! I am not responsible for anything that can happen to your account. If you want to test it out on a private server, you can set theserverattribute when initializing the client.You can install this package with pip:pipinstallosuOr build it manually:gitclonehttps://github.com/Lekuruu/osu.py.gitcdosu.py
pipinstallsetuptools
pythonsetup.pyinstallFeaturesReceiving player statsSending/Receiving chat messagesSpectatingAvatarsCommentsReplaysScores/Leaderboardsosu!directTournament client behaviourDocumentationMultiplayerExampleHere is a small example of how to use this package:fromosu.bancho.constantsimportServerPacketsfromosu.objectsimportPlayerfromosuimportGameimportlogging# Enable extended logginglogging.basicConfig(level=logging.INFO,format='[%(asctime)s] - <%(name)s>%(levelname)s:%(message)s')# Initialize the game classgame=Game(USERNAME,PASSWORD)# Simple message handler@game.events.register(ServerPackets.SEND_MESSAGE)defon_message(sender:Player,message:str,target:Player):ifmessage.startswith('!ping'):sender.send_message('pong!')# Run the gamegame.run()You can also run tasks, independent of server actions:# Example of a task, running every minute@game.tasks.register(minutes=1,loop=True)defexample_task():...This projectis also a good example
and it was also the reason why I even started this project.If you have any questions, feel free to contact me on discord:lekuru
Package: osu2mp3
osu! to mp3convert .osz osu beatmaps into properly-tagged .mp3 filesInstallationClone this project and runpython setup.py installRunosu2mp3 [-h] [-i INPUT] [-o OUTPUT] [-s]ArgumentsArgumentDescription-i, --inputSpecify input directory-o, --outputSpecify directory audio files will be extracted to--silentDon't show progress bar-h, --helpShow the information above
Package: osu-apy-v2
handles refreshing the access_token and stores a mapping of known osu player names and ids in a sqlite database.read theosu!api v2 Docspip install osu-apy-v2fromosu_apy_v2importOsuApiV2api=OsuApiV2(application_id,application_secret)user_id=api.get_user_id("whitecat")res=api.get(f"/users/{user_id}/scores/best?mode=osu&limit=1")print(res.json())
Package: osu-beatmap-downloader
Osu! Beatmapset DownloaderDownloads given number of beatmapsets with the most favorites fromosu.ppy.shinto the default osu! directory.InstallationYou can install this program viapip:pip install osu-beatmap-downloaderThis will install the program in the global python package folder inside your python installation directory.You can also install it into your pythonuserdirectory with:pip install --user osu-beatmap-downloaderThese directories might not be in PATH. If you want to use this program from the command line, you may have to add the correct directories to PATH.UsageTo use the downloader navigate to your osu! Songs directory (default isC:\<User>\AppData\Local\osu!\Songs\):cd ~\AppData\Local\osu!\Songs\Make sure you are in the correct directorysince the downloader will save all the files in the current working directory.Then start the dowloader withosu-beatmap-downloader downloadThe program will ask for your osu! username and password becauseosu.ppy.shwon't let you download beatmaps without being logged in.The program will then ask you if you want to save your credentials so that you don't have to enter them every time you want to start the program. They will be stored in%USERPROFILE%/.osu-beatmap-downloader/credentials.jsonon Windows and~/.osu-beatmap-downloader/credentials.jsonon Linux/macOS. The credentials are saved inplaintext(yes, that includes your password!). If you want to delete the credential file you can run:osu-beatmap-downloader credentials --deleteYou can check if the credential file exists with:osu-beatmap-downloader credentials --checkBy default the program will download thetop 200beatmaps. You can change the limit with:osu-beatmap-downloader download --limit 500orosu-beatmap-downloader download -l 500You can also download the beatmaps without video files by adding:osu-beatmap-downloader download -l 500 --no-videoorosu-beatmap-downloader download -l 500 -nvThe programm will limit its rate to 30 files per minute to prevent unnecessary load on osu!s website.
Despite this after a specific amount of songs (that I don't know) the website will prevent any further downloads. The program will terminate after 5 failed downloads. In this caseyou might have to wait for half an hour or even longerbefore you can download again.Every step will be printed in your command line window and will also be logged in%USERPROFILE%/.osu-beatmap-downloader/downloader.logon Windows or~/.osu-beatmap-downloader/downloader.logon Linux/macOS.
Package: osuca
OSU Course Analytics (Osuca)Analyze student review responses for courses in the Computer Science (CS) program of Oregon State University (OSU)DescriptionThis program allows analyzingthe online survey of course reviewsfrom the CS students in OSU. It helps students answer questions such as:Does course difficulty vary from term to term?Does course difficulty increase if I take other courses in the same quarter?Which course combinations are most difficult taken together?It also exposes several services for client programs to query course analytics in JSON format. SeeCommunication Contractfor further details.Getting StartedDependenciesOsuca requires Python 3.7 and newer. It can run on any operating system with Python.InstallingCreate a virtual environment and activate it.macOS/Linux$ mkdir osuca
$ cd osuca
$ python3 -m venv venv
$ . venv/bin/activateWindows> mkdir myproject
> cd myproject
> py -3 -m venv venv
> venv\Scripts\activateInstall Osuca and dependencies from PyPI(venv) pip install osucaExecuting programSet environment variablesmacOS/Linux$ export FLASK_APP=osuca
$ export OSUCA_DATA_SOURCE='https://docs.google.com/spreadsheets/d/1MFBGJbOXVjtThgj5b6K0rv9xdsC1M2GQ0pJVB-8YCeU/export?format=csv'Windows> $env:FLASK_APP = "osuca"
> $env:OSUCA_DATA_SOURCE = "https://docs.google.com/spreadsheets/d/1MFBGJbOXVjtThgj5b6K0rv9xdsC1M2GQ0pJVB-8YCeU/export?format=csv"Run Osucaflask runView output in your browser athttp://localhost:5000Communication ContractOsuca returnsJSONobjects for the following validHTTP GETrequests:/courses/course-year-aggregates/course-quarter-aggregatesFor example,$curl http://localhost:5000/courseswill return a JSON list of course objects to the clients.UML Sequence DiagramAs shown in the diagram, Osuca requests a CSV document that resides in Google documents containing the scraped student responses. Then it serves the contents of this document in JSON form to clients.Service DetailsThe following shows example responses to the requests./courses[
  {
    "subject": "CS",
    "id": "419",
    "name": "Capstone"
  },
  {
    "subject": "CS",
    "id": "325",
    "name": "Analysis of Algorithms"
  }, …
]/course-year-aggregates[
  {
    "course": {
      "subject": "CS",
      "id": "261",
      "name": "Data Structures"
    },
    "year": "2018",
    "aggregate": {
      "count": 11,
      "sum": 31,
      "mean": 2.81
    }
  }, …
 ]/course-quarter-aggregates[
  {
    "course": {
      "subject": "CS",
      "id": "290",
      "name": "Web Development"
    },
    "quarter": {
      "term": "Spring",
      "year": "2022"
    },
    "aggregate": {
      "count": 6,
      "sum": 15,
      "mean": 2.5
    }
  }, …
]AuthorsTolga Ozbakan |tolga@ozbakan.comLicenseThis project is licensed under the MIT License - see the LICENSE file for detailsAcknowledgmentsInspiration, code snippets, etc.A simple README.md template
Package: osu-cleaner-cli
osu-cleaner-cliRemove unwanted files from osu! Songs directory. A rewrite ofthattool, which is not cross-platform and does not work as intended.Installationpipinstallosu-cleaner-cliUsageusage: osu-cleaner-cli [-h] [--delete-videos] [--delete-hitsounds] [--delete-backgrounds] [--delete-skin-elements] [--delete-storyboard-elements] [--delete-all] [osu_songs_directory]

Remove unwanted files from osu! Songs directory.

positional arguments:
  osu_songs_directory   path to your osu! Songs directory

optional arguments:
  -h, --help            show this help message and exit
  --delete-videos
  --delete-hitsounds
  --delete-backgrounds
  --delete-skin-elements
  --delete-storyboard-elements
  --delete-all

If no arguments or only osu! Songs directory specified, script will start in interactive mode.
Package: osuclient
osuclient.pyosuclient.py aims to allow the emulation of the communication between an osu client and server through code.It is now also available onPyPiNotePlease make sure this is only used on servers which you have explicit permission to do so.
Using this without permission may result in restrictions and bans as it is likely to break the rules there.UsesHaving full control over what requests are being sent to a server can be extremely beneficial. It helps with:Debugging and testing rare scenariosStress testing/benchmarking specific scenarios/usagesCreating automated testing suitesExampleA basic client using osuclient.py would look something like this:fromosuclient.clientimportbanchofromosuclient.packetsimportconstantsfromosuclient.packetsimportrwimportasyncioloop=asyncio.get_event_loop()osu=bancho.OsuVersion(year=2022,month=6,day=29)hwid=bancho.HWIDInfo.generate_random()client=bancho.BanchoClient.new(version=osu,hwid=hwid,)# Example custom packet handler.@client.on_packet(constants.PacketID.SRV_NOTIFICATION)asyncdefon_notification(packet:rw.PacketContext)->None:print(f"Notification>{packet.reader.read_str()}")asyncdefmain():res=awaitclient.connect(username="Username",password="Password",server=bancho.TargetServer.from_base_url("server.example"),)ifnotres:print("Failed to connect.")returnprint("Successfully connected.")print(f"{client.username}({client.user_id})")print(f"Connected from{client.version.version}to{client.server.bancho}"f" (v{client.protocol_version})")awaitclient.run_forever()if__name__=="__main__":loop.run_until_complete(main())
Package: osu-cplayer
osu-cplayerFast, compact, and featured command line osu! song player built on mpv.InstallationInstall osu-cplayer via pip:pip install osu-cplayerInstallmpvOn first run, enter the absolute paths of your songs folder, collections.db file and osu!.db fileThese settings get saved in your home folder as~/.osupathsor equivalent.I've tested this on gnu/linux and macos, and it works. Windows is untested though, I'd appreciate someone trying it out.UsagePrevious/Next Song:left/rightMove Selection:up/down,k/j, left click, or scrollPlay song:enteror double clickToggle play/pause:pRestart song and play:rQuit:qorescAdd song to queue:aClear queue:AShuffle:sSort alphabetically(default):SSort by date added:dFilter::or mouse followed by filter termReset filter:escExit text box: any special key or mouseFilter by Collection:cor mouse, followed by collection name, andenterOpen this help page:?Otherosu!.db reading code is taken fromOsuDbReaderDependenciesPython 3.6+python-mpvurwidtinytag
Package: osu-data-csv
Data PPY CSV RetrievalRetrieve data from the data ppy dump as CSV files.:exclamation: ImportantI have been given permission to upload the script, however, not the data.Thus, ifyouwant to upload the data elsewhere, please contact ppy throughcontact@ppy.sh.All data provided here is done so with the intention of it being used for statistical analysis
and testing osu! subsystems.

Permission is NOT implicitly granted to deploy this in production use of any kind.
Should you wish to publicly use/expose the data provided here, please contact me first at contact@ppy.sh.

Please see https://github.com/ppy/osu-performance for more information.

Thanks,
ppyDownloading & Convertingpip install osu-data-csvrunosu-data-csvin the terminalosu-data-csvA series of prompts should show up. SeeArgumentsbelow for more info and examples(Alternatively) run in a single commandosu-data-csv\-y"2022_12"\-d"mania"\-s"1000"\-l"data/"\-c"N"\-q"Y"\-i"path/to/ignore_mapping.yaml"ArgumentsOptionOption (Shorthand)Desc.Example--year_month-yDataset Year and Month. Will fail if doesn't exist anymore2022_10--mode-dGamemode. ['catch', 'mania', 'osu', 'taiko']mania--set-sDataset of Top 1K or 10K players. ['1000', '10000']1000--dl_dir-lDirectory to download to. Best if empty. Can be not created.data/--cleanup-cWhether to delete unused files after conversion. ['Y', 'N']N--bypass_confirm-qWhether to bypass confirmation of downloaded and new files. ['Y', 'N']N--ignore_path-iPath to YAML file ignore  specification (see next section)path/to/ignore_mapping.yamlIt's set to retrieve the following:osu_user_stats_<MODE>.sql
osu_scores_<MODE>_high.sql
osu_beatmap_difficulty.sql
osu_beatmaps.sqlSelecting ColumnsIt's slow as it convertsall columns. To speed this up, and reduce space taken, it's best to use--ignore_pathwith a YAML file.Download the templateignore_mapping.yamlhereCommentoutfields that you want toinclude.Callosu-data-csv -i path/to/ignore_mapping.yaml [other options]For exampleosu_beatmap_difficulty.sql:#  - beatmap_id-mode-mods-diff_unified-last_updateosu_beatmaps.sql:-beatmap_id-beatmapset_id#  - user_id#  - filename...We'll retrievebeatmap_idfromosu_beatmap_difficulty.sqlanduser_id,file_namefromosu_beatmaps.sqlOutputThis will generate a few files. You'd want to retrieve the.csv.- main.py 
- <dl_dir>/
  - 202X_XX_01_performance_<MODE>_top_<SET>.tar.bz2 (*)
  - 202X_XX_01_performance_<MODE>_top_<SET>/
    - csv/
      - osu_user_stats_<MODE>.csv
      - _.csv
      - ...
    - osu_user_stats_<MODE>.sql (*)
    - _.sql (*)
    - ...(*)files are deleted ifcleanupis enabled.
Package: osuosl_hieroglyph_theme
To make go:In conf.py:import osuosl_hieroglyph_theme
html_theme = 'osuosl'  ##(must be changed in file)!
html_theme_path = osuosl_hieroglyph_theme.get_html_theme_path()
html_static_path = ['_static', html_theme_path + '/osuosl/static/'] ##(must be changed in file)
slide_theme_options = {'custom_css' : 'osuosl.css'}
slide_footer = "<img src='_static/logo.png'>"For the html_theme and html_static_path variables, you must find the defaults in the file and change them, as they will not be overridden by your declaration of them!make slides