Saravanan666/pypi-org huggingface dataset:
Package: edvinspythonlib
Edvins Python LibraryMy library for personally coded python functions and classesIs sorted into my courses right nowThe library isn't superrr useful, but it's funInstallationpip install edvinspythonlibGet startedHow to use one of my functions or classes in your own code# Import one of the modulesfromedvinspythonlibimportmachinelearningasml# Call the method you wish to usemodel=ml.linearRegression()model.fit(X,y)model.residualPlot(X,y)DocumentationCurrently the three working modules are:machinelearningimageanalysisalgodataLater I hope to also add funtionality for:mathstatcomputervisionreinforcementlearningactivemachinelearningTesting is currently sparse, but I hope to work on that soonmachinelearningSome functions and classes for my course "Machine learning and data mining"
Current implementations:function standardizedatafunction PCAefunction kFoldCVfunction nestedCVclass linearRegressionclass baselineRegressionalgodataSome functions and classes for my course "Algorithms and data structures"
Current implementations:class Stackclass Queuefunction SAimageanalysisSome functions and classes for my course "Image analysis"
Current implementations:function plotimgfunction todecimalfunction tobinfunction histogramfunction changevectorbasisfunction thinlensequationfunction runlengthencodingfunction chaincodefunction stretchimagefunction stretchfunctionfunction gammamappingfunction logmappingfunction bilinearfunction calculateRfunction calculateentropy
Package: edwardsserial
edwardsserialedwardsserialis a Python package with an object-oriented wrapper for theTIC Turbo- and Instrument Controllerfrom Edwards.Documentationdocumentation of thelatest realeaseContributingAll contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.A detailed overview on how to contribute can be found in thecontributing guide.LicenseThis code is licensed under theMIT license. SeeLICENSE.ChangelogChanges to the code are documented in thechangelog.
Package: edwh
edwhTable of ContentsInstallationUsagePluginsLicenseChangelogInstallationpipx install edwh#orwithallplugins:pipx install[plugins]#orwithspecificplugins:pipx install[multipass,restic]#managingpluginslater:edwh pluginsedwh plugin.add multipassedwh plugin.remove multipassUsageew --helpPluginsMultipasspip name:edwh-multipass-plugingithub:educationwarehouse/edwh-multipass-pluginplugin name:edwh[multipass]subcommand namespace:mpResticpip name:edwh-restic-plugingithub:educationwarehouse/edwh-restic-pluginplugin name:edwh[restic]subcommand namespace:resticPip Compilepip name:edwh-pipcompile-plugingithub:educationwarehouse/edwh-pipcompile-pluginplugin name:edwh[pip]subcommand namespace:pipBundlerpip name:edwh-bundler-plugingithub:educationwarehouse/edwh-bundler-pluginplugin name:edwh[bundler]subcommand namespace:bundleServer Provisioningpip name:edwh-server-provisioning-plugingithub:educationwarehouse/server_provisioningplugin name:edwh[server-provisioning]subcommand namespace:remoteb2pip name:edwh-b2-plugingithub:educationwarehouse/edwh-b2-pluginplugin name:edwh[b2]subcommand namespace:b2Locustpip name:edwh-locust-plugingithub:educationwarehouse/edwh-locust-pluginplugin name:edwh[locust]subcommand namespace:locustsshkeypip name:edwh-sshkey-plugingithub:educationwarehouse/edwh-sshkey-pluginplugin nameedwh[sshkey]subcommand namespacesshkeysshfspip name:edwh-sshfs-plugingithub:educationwarehouse/edwh-sshfs-pluginplugin nameedwh[sshfs]subcommand namespacesshfsfilespip name:edwh-files-plugingithub:educationwarehouse/edwh-files-pluginplugin nameedwh[files]subcommand namespacefilewhitelabelpip name:edwh-whitelabel-plugingithub:educationwarehouse/edwh-whitelabel-pluginplugin nameedwh[whitelabel]subcommand namespacewlLicenseedwhis distributed under the terms of theMITlicense.ChangelogSee CHANGELOG.md
Package: edwh-b2-plugin
edwh-b2-pluginTable of ContentsInstallationLicenseInstallationpip install edwh-b2-pluginBut probably you want to install the whole edwh package:pipx install edwh[b2]#orpipx install edwh[plugins,omgeving]Licenseedwh-b2-pluginis distributed under the terms of theMITlicense.
Package: edwh-demo-plugin
edwh-demo-pluginTable of ContentsInstallationLicenseUSING THIS TEMPLATE REPOSITORYremove this markdown section;replace 'demo' in README.md, pyproject.toml and the name of the plugin insrcto your actual plugin name;(add your actual plugin code of course);runsemantic-release publish,hatch build -candhatch publish.Installationpip install edwh-demo-pluginBut probably you want to install the whole edwh package:pipx install edwh[demo]#orpipx install edwh[plugins,omgeving]Licenseedwh-demo-pluginis distributed under the terms of theMITlicense.
Package: edwh-files-plugin
edwh-files-pluginTable of ContentsInstallationUsageLicenseInstallationpip install edwh-files-pluginBut probably you want to install the whole edwh package:pipx install edwh[files]#orpipx install edwh[plugins,omgeving]Usage(Arguments between< >are required, arguments between[ ]are optional)Uploadedwhfile.upload<path_to_file>--server[str]--max-downloads[int]--max-days[int]--encrypt[str]path_to_file: which file to uploadserverisfiles.edwh.nlby default, but can be anytransfer.shinstance.max-downloads: how often can the file be downloaded?max-days: for how long can the file be downloaded?encrypt: secret to encrypt the file withThis command outputs the upload status code, file url and deletion url.Downloadedwhfile.upload<url>--decrypt[str]--output-file[str]url: file url fromfile.uploaddecrypt: if--encryptis used infile.upload, the same secret can be used to decrypt the file.output-file: where to store the downloadDeleteedwhfile.upload<url>url: deletion url fromfile.uploadLicenseedwh-files-pluginis distributed under the terms of theMITlicense.
Package: edwh-ghost
EDWH Ghost ClientThis Client is compatible with v3 and v4 of the Ghost CMSAdminandContentAPI's.Installationpipinstalledwh-ghostUsageTheGhostAdminclass can be instantiated as follows:fromghostimportGhostAdminfromdotenvimportdotenv_valuesconfig=dotenv_values(".env")# .env can be used, but config values can also be simply hardcodedga=GhostAdmin(config["GHOST_SITE"],adminAPIKey=config["GHOST_ADMIN_KEY"],contentAPIKey=config["GHOST_CONTENT_KEY"],api_version="v4",# works like a train)print(ga.site())If no admin API key is available, theGhostContentclass can be used, which has read-only access to public endpoints.After creating aGhostClientinstance, the different Resources can be used:fromghost.resourcesimport*posts:PostResource=ga.posts# READmultiple=posts(limit=5)# Ghost Result Set# alias forposts.get(limit=5)# Ghost Result Setsome_post=posts.get("some_id")# Ghost Resultforpostinposts.paginate():# iterate without limitprint(post)# Ghost Result# UPDATEsome_post.update({...})# response dict# alias:posts.update("some_id",{...})# response dict# bulk:multiple.update({...})# response dict# DELETEsome_post.delete()# bool of success# alias:posts.delete("some_id")# bool of success# bulk:multiple.delete()# list of bools of success# CREATE# one:posts.create(title="...",etc="...")# response dict# bulk:posts.create({...},{...})# list of response dicts# some resources are read only:authors:AuthorResource=ga.authorsauthors()# Ghost Result Setauthors.delete()# errorAvailable Resources:Resource Class[^1]Ghost PathMethod[^2]Related TestsAdmin?Content?Posts/postsghost.posts(), ghost.post()test_1_posts, test_10_ghost_content, test_11_ghost_paginate✓✓Pages/pagesghost.pages(), ghost.page()test_2_pages✓✓Authors/authorsghost.authors(), ghost.author()test_4_authors~[^3]✓Tags/tagsghost.tags(), ghost.tag()test_3_tags✓✓Members/membersghost.members(), ghost.member()test_9_members✓✗Images/imagesghost.images.upload()test_6_images✓✗Themes/themesghost.themes.upload(), ghost.themes.activate()test_7_themes✓✗Site/siteghost.site()test_8_site_and_settings✓✗Settings/settingsghost.settings()test_8_site_and_settings~[^3]✓Users/usersghost.user(), ghost.users()test_12_users, test_13_users_content✓✗[^1]: these classes live inghost.resources[^2]: whereghostis an instance of aGhostClientsubclass (GhostContentorGhostAdmin)
[^3]: Content APIs are also accessible through theGhostAdminclient, they are however read-onlyUnavailable Resources:Resource NameGhost PathAdmin?Content?ReasonTiers/tiers✓✓Testing FailedOffers/offers✓✗Testing FailedWebhooks/webhooks✓✗TODO
Package: edwh-locust-plugin
edwh-locust-pluginTable of ContentsInstallationLicenseInstallationpip install edwh-locust-pluginBut probably you want to install the whole edwh package:pipx install edwh[locust]#orpipx install edwh[plugins,omgeving]Licenseedwh-locust-pluginis distributed under the terms of theMITlicense.
Package: edwh-migrate
Educationwarehouse's MigrateTable of ContentsInstallationDocumentationLicenseInstallationpip install edwh-migrateDocumentationConfig: Environment variablesThese variables can be set in the current environment or via.env:MIGRATE_URI(required): regularpostgres://user:password@host:port/databaseorsqlite:///path/to/databaseURIDATABASE_TO_RESTORE: path to a (compressed) SQL file to restore..xz,.gzand.sqlare supported.MIGRATE_CAT_COMMAND: for unsupported compression formats, this command decompresses the file and produces sql on the
stdout.SCHEMA_VERSION: Used in case of schema versioning. Set by another process.REDIS_HOST: If set, all keys of the redis database 0 will be removed.MIGRATE_TABLE: name of the table where installed migrations are stored. Defaults toewh_implemented_features.FLAG_LOCATION: when using schema versioned lock files, this directory is used to store the flags. Defaults to/flags.CREATE_FLAG_LOCATION(bool): should the directory above be created if it does not exist yet? Defaults to 0 (false).SCHEMA: (for postgres) set the default namespace (search_path). Defaults topublic.USE_TYPEDAL: pass a TypeDAL instance to migrations instead of a regular pyDAL.Config: pyproject.tomlYou can also set your config variables via the[tool.migrate]key inpyproject.toml.
First, these variables are loaded and then updated with variables from the environment.
This way, you can set static variables (the ones you want in git, e.g. themigrate_tablename or path to the backup to
restore) in the toml, and keep private/dynamic vars in the environment (e.g. the database uri or schema version).Example:[tool.migrate]migrate_uri=""# filled in by .envdatabase-to-restore="migrate/data/db_backup.sql"# ...Creating amigrations.pyfromedwh_migrateimportmigration@migrationdeffeature_1(db):print("feature_1")returnTrue@migration(requires=[feature_1])# optional `requires` ensures previous migration(s) are installeddeffunctionalname_date_sequencenr(db:pydal.DAL):db.executesql("""CREATE TABLE ...""")db.commit()returnTrueUsageWhen your configuration is set up properly and you have a file containing your migrations, you can simply run:migrate# or, to use a different name than migrations.py:migratepath/to/my/migrate_file.pyLicenseedwh-migrateis distributed under the terms of theMITlicense.
Package: edwh-multipass-plugin
edwh-multipass-pluginTable of ContentsInstallationLicensemp.fix-hostmp.installmp.prepareInstallationInstall just this plugin:pip install edwh-multipass-pluginBut probably you want to install the wholeedwhpackage:pipx install edwh[plugins,omgeving]#orpipx install edwh[multipass]if you want to use theedwhcommand line tool with just themultipassplugin:pipx install edwhpipx inject edwh edwh-multipass-pluginmp.fix-hostakamp.fix-dnsFixes the ip adres in the hosts file for a multipass instance.When issuing on the first run fix-host will add an entry to your hosts file, and you can enter
different hostnames you want to register for the instance.mp.fix-host dockers -h dockers.local -h delen.dockers.local -h web2py.dockers.local ...After this initial registration, you can update the ip address of the instance by runningmp.fix-host dockersagain.
Be aware that you cannot register new hostnames after the initial registration. Update your/etc/hostsfile instead.mp.installInstalls multipass on an ubuntu based machine if not already installed.mp.prepareAllows you to ssh into a multipass instance, so you are able to run fabric commands against it.mp.preparewill generate a multipass_keyfile~/.ssh/multipass.key(if not already present)
and add the public key to the multipass instance'sauthorized_keysfile.mp.preparesautomatically runsmp.install.Licenseedwh-multipass-pluginis distributed under the terms of theMITlicense.
Seethe licensefor details.
Package: edwh_nostr_messagebus
.Table of ContentsInstallationUsageLicenseInstallationpip install edwh-nostr-messagebusThere is an example folder that you canview on githubwith a helpfultasks.pydemo to work with this library.UsageRunpython3 ./run_relay --port 8888from themonstr_terminalpackage to have local relaychdir to the examples folder (there is a tasks.py file there)Runinvoke setupbefore anything else, in this folder, or wherever you create yourtasks.pyRuninvoke camelcaser -vvto enable the example camelcaser botRuninvoke connect -vvvto watch debug output from several read-only message dumping handlersRuninvoke new --gidname "abc:here is my test" --gidname "def:And another" --key edwhto create 2 messages for new itemsThe first message from thenewcommand will result in a trigger of thecamelcasersince it's triggered by
not camelcased names. The second message is "properly" formatted, and will not trigger it. In the debug view you can see
there are extra tags on the newly created message for the same gid, and an updated name attribute.Basically, this is alot of what this entire project is all about.License-is distributed under the terms of theMITlicense.PackagingMake sure your commit messages are semantic.semantic-release publish; hatch build -c ; hatch publish
Package: edwh-pipcompile-plugin
edwh-pipcompile-pluginTable of ContentsInstallationLicenseChangelogInstallationpip install edwh-pipcompile-pluginBut probably you want to install the whole edwh package:pipx install edwh[pip]#orpipx install edwh[plugins,omgeving]UsageTo see all available subcommands or get help for a specific command, you can use:edwhhelppip
edwhhelppip.compileYou can usepip.compile(andpip.upgrade, etc.) in multiple ways.
You can run it on a specific file:ew pip.compile <myfile.in>. This will result in amyfile.txt.
You can run it on a directory:ew pip.compile <mydirectory>orew pip.compile ..
This will transform all.infiles into.outfiles (with the same name):mydirectory/first.in->mydirectory/first.txtmydirectory/second.in->mydirectory/second.txtYou can also add--combineto combine multiple.infiles into a single.txtfile (
called<directory>/requirements.txt).If you want to modify this behavior, you can do so viapyproject.toml:[tool.edwh.pipcompile.directory]input=["first.in","../second.in"]# will ignore other .in files;# transformed to directory/first.in and ./second.inoutput="output.txt"# directory/output.txtWhere 'directory' is the name of a specific folder.
You can use the special symbol__cwd__to target the project folder.Licenseedwh-pipcompile-pluginis distributed under the terms of theMITlicense.ChangelogSee CHANGELOG.md
Package: edwh-server-provisioning-plugin
edwh-server-provisioning-pluginTable of ContentsInstallationLicenseChangelogInstallationpip install edwh-server-provisioning-pluginBut probably you want to install the whole edwh package:pipx install edwh[server-provisioning]#orpipx install edwh[plugins,omgeving]UsageWhen theedwhpackage is installed, this package lives under the 'remote' namespace. Example:edwh -H user@some-host.tld remote.connect-postgresLicenseedwh-bundler-pluginis distributed under the terms of theMITlicense.ChangelogSee CHANGELOG.md
Package: edwh-sshfs-plugin
edwh-sshfs-pluginTable of ContentsInstallationLocal MountsRemote MountsLicenseInstallationpipinstalledwh-sshfs-pluginBut probably you want to install the whole edwh package:pipxinstalledwh[sshfs]orpipxinstalledwh[plugins,omgeving]Also you will be required to run these commandssudoapt-getupdate
sudoapt-getupgrade
sudoapt-getinstallopenssh-client
sudoaptinstallopenssh-server
sudosystemctlenablessh
sudoaptinstallsshfs
sudoufwallowssh
sudoinit6#optional for rebootcreating remote mountsusageedwh-h{server}sshfs.remote-mount-w{local_dir}-s{server_dir}The remote_mount function is an asynchronous Python task that allows you to mount a remote directory
on your local machine using SSHFS (SSH Filesystem). It establishes a secure connection to a remote server,
forwards a port, and mounts the remote directory on the local machine.Parametersworkstation_dir: The local directory path where the remote directory will be mounted to the server_dir.server_dir: The remote directory path that will become a mountqueue: An optional parameter representing the queue object for synchronization (default: None).creating local mountsUsageedwh-h{server}sshfs.local-mount-w{local_dir}-s{server_dir}Argumentsworkstation_dir(-w): The local directory path That will become a mountserver_dir(-s): The remote directory path That will be mounted onto the workstation directoryqueue: An optional parameter representing the queue object for synchronization (default: None).Licenseedwh-sshkey-pluginis distributed under the terms of theMITlicense.
Package: edwh-sshkey-plugin
edwh-sshkey-pluginTable of ContentsInstallationGuideGenerating new keysAdding keysRemoving keysListing Local/Remote KeysLicenseInstallationTo install all edwh related pluginspipx install edwh[plugins,omgeving]To only install edwh sshkey pluginpipx install edwh[sshkey]GuideGenerating new keys:example forubuntu@user.nledwh sshkey.generate --message={message} --owner=ubuntu --hostname=user --goal=nlpossible arguments forew sshkey.generate:message: REQUIRED, message to give with the generated keyowner: owner of the server you are generating a key forhostname: hostname of the server you are generating the key forgoal: What is the goal to use this key for, for example: 'production' or 'testing'note:you atleast need to give this function 2-3 parameters and a message else it will not work.Adding keys to remoteexample forubuntu@user.nledwh sshkey.add-to-remote -H ubuntu@user.nl --keys_to_remote=owner-hostname-goalpossible arguments forew sshkey.add-to-remote:keys_to_remote: all saved keys you want to add to the remoteRemoving SSH keys from a remote machine:The delete_remote function is used to remove specified SSH keys from a remote machine.
The function takes in an iterable of keys to be removed and a Connection object.usage:edwh sshkey.delete-remote -H ubuntu@user.nl --keys_to_remote=owner-hostname-doelpossible arguments forew delete_remote:keys_to_remote: An iterable of keys to be removed from the remote machine. If a string is provided, it is converted into a list with one element.note:The function retrieves all key information from the keyholder and checks if the command line key is present in the key information.
If it is, the function retrieves the SSH key and removes it from the authorized_keys file on the remote machine.
After successfully removing the key, the function prints a success message indicating that the specified key has been removed.List SSH keys from a remote or local machine:edwh sshkey.list -H ubuntu@user.nlNote:this list all found known and unknown keys on the local or remote server.Licenseedwh-sshkey-pluginis distributed under the terms of theMITlicense.
Package: edwh-uptime-plugin
edwh-uptime-pluginUptimeRobot API integration for theedwhtool.Table of ContentsInstallationLicenseInstallationpip install edwh-uptime-pluginBut probably you want to install the whole edwh package:pipx install edwh[uptime]#orpipx install edwh[plugins,omgeving]Usage# set your api key and see your profile info:edwhuptime.account# see the other available commands:edwhhelpuptimeUPTIMEROBOT_APIKEYis saved in a.envfile. You can also setIS_DEBUG=1if you want to see verbose logging (every
request and response).As a Libraryfromedwh_uptime_pluginimporttasksfromedwh_uptime_plugin.tasksimportspecific_taskfromedwh_uptime_plugin.uptimerobotimportUptimeRobot,uptime_robot# run specific tasks via tasks.some_task or import some_tasktasks.specific_task==specific_task# by default, the API key will be loaded from .env or prompted.uptime_robot._api_key="specific-key"# before any API calls to skip .env behavior# uptime_robot is an instance of UptimeRobotuptime_robot.get_account_details()Licenseedwh-uptime-pluginis distributed under the terms of theMITlicense.
Package: edwh-whitelabel-plugin
edwh-whitelabel-pluginTable of ContentsInstallationLicenseInstallationpip install edwh-whitelabel-pluginBut probably you want to install the whole edwh package:pipx install edwh[whitelabel]#orpipx install edwh[plugins,omgeving]Licenseedwh-whitelabel-pluginis distributed under the terms of theMITlicense.
Package: edwiges
Running locally:export EDWIGES_PROVIDER_HOST=YOUR_HOST
export EDWIGES_PROVIDER_USERNAME=YOUR_USER
export EDWIGES_PROVIDER_PASSWORD=YOUR_PASSWORD

python setup.py develop
pserve edwiges.ini  --reloadNoteYou can also set the provider information on your .ini file.With docker:export EDWIGES_PROVIDER_HOST=YOUR_HOST
export EDWIGES_PROVIDER_USERNAME=YOUR_USER
export EDWIGES_PROVIDER_PASSWORD=YOUR_PASSWORD

docker-compose up
Package: edwin-yt-concate
#\x00 \x00y\x00o\x00u\x00t\x00u\x00b\x00e\x00_\x00c\x00o\x00n\x00c\x00a\x00t\x00e\x00
\x00
\x00#\x00 \x00y\x00o\x00u\x00t\x00u\x00b\x00e\x00_\x00c\x00o\x00n\x00c\x00a\x00t\x00e\x00
\x00
\x00
Package: edw.logger
Installation[instance]
...
eggs =
    ...
    edw.logger
zcml =
    ...
    edw.loggerIntroductionThis package creates a newedw.loggerlog facility that logs to
INFO and ERROR the following events:Viewed pages - Enabled by default. Can be disabled via environment variableEDW_LOGGER_PUBLISHER(e.g.:EDW_LOGGER_PUBLISHER=false;Raised errors - Enabled by default. Can be disabled via environment variableEDW_LOGGER_ERRORS(e.g.:EDW_LOGGER_ERRORS=false);Added/created/copied/moved/deleted content - Enabled by default. Can be disabled via environment variableEDW_LOGGER_CONTENT(e.g.:EDW_LOGGER_CONTENT=false);ZODB commits - Enabled by default. Can be disabled via environment variableEDW_LOGGER_DB(e.g.:EDW_LOGGER_DB=false);Catalog indexing - Enabled by default. Can be disabled via environment variableEDW_LOGGER_CATALOG(e.g.:EDW_LOGGER_CATALOG=false);Catalog indexing stack trace - Disabled by default. Can be enabled via environment variableEDW_LOGGER_CATALOG_STACK(e.g.:EDW_LOGGER_CATALOG_STACK=true);Privacy optionsUser IP and user id aredisabledby default, you can re-enable them using:EDW_LOGGER_USER_IP(e.g.:EDW_LOGGER_USER_IP=true);EDW_LOGGER_USER_ID(e.g.:EDW_LOGGER_USER_ID=true);Changelog1.15 - (2018-04-03)Fix request call within zc.async context
[avoinea]Add z3c.autoinclude.plugin support
[batradav]1.14 - (2018-03-22)Fix possible logging errors in catalog and db commits.Disable user and IP logging by default.
[batradav]1.13 - (2018-03-02)Fix logging errors caused by recursive Acquisition wrapped objects
[batradav]1.12 - (2018-02-28)Fix zCatalog idxs and metadata report
[avoinea]1.11 - (2018-01-18)Fix integer literals in duration report.
[batradav]1.10 - (2018-01-18)Add zCatalog catalog_object support. Disabled by default.
[batradav]1.9 - (2017-05-23)Add ‘Action’ based on URL on db commits and errors
[avoinea]1.8 - (2017-05-23)Fix AttributeError: REQUEST
[avoinea]1.7 - (2017-05-16)Fix AttributeError: ‘NoneType’ object has no attribute ‘getUserName’
[avoinea]1.6 - (2017-05-16)Add missing LoggerName on db_commit
[avoinea]1.5 - (2017-05-16)Enable/disable logging via environment variables
[avoinea]1.4 - (2017-05-12)Ignore health.check URLs
[batradav]1.3 - (2017-02.21)Fixed cases where traceback contains non-ascii characters
[olimpiurob refs #82516]Add ‘font’ to ignored content types.
[batradav]1.2 - (2017-01-26)Ignore all but GET and POST requests.
[batradav]1.1 - (2017-01-19)Added LoggerName in the JSON object [refs #80663 olimpiurob]1.0 - (2017-01-17)Initial release