Saravanan666/pypi-org huggingface dataset:
Package: giu
GIUGandi LiveDNS Updater - Command line tool to keep your dynamic ip up to date.PrequisitesA valid key fro Gandi LiveDNS API. Usehttps://account.gandi.net/en/users/USER/security(USERis your Gandi user account).Python 3.InstallationThe recommended way to install this package is throughpip.pipinstall--usergiuUsageTo usegiuyou need to create aconfig.tomlfile to hold the minimal set of
configurations.[api]url='https://dns.api.gandi.net/v5/livedns'key='YOUR_KEY'[dns]domain='example.com'records=[{'type'='A','name'='@','ttl'=18000},{'type'='A','name'='*','ttl'=1800},][resolver]providers=['http://ipecho.net/plain','https://ifconfig.me/ip','http://www.mon-ip.fr']Docker ComposeIn this example the config is in the current folder.docker-composerup-dBy default the process will check your configuration every hour and update it if
the process detects a drift in the desired state.One shotIn this example the config file was created on$HOME/.giu/example.com.toml.giusync--conf$HOME/.giu/example.com.tomlCronjobIn this example the config file was created on$HOME/.giu/example.com.toml.$crontab-e
**/2***giusync--conf$HOME/.giu/example.com.tomlDockerIn this example a config file in the$PWDfolder is mounted in/app/confand
the command runs indry-runmode.dockerrun-it--rm-v$PWD:/app/confyriveiro/giu:devgiusync--dry-run--config/app/conf/config.toml

✔DynamicIPfetched.
ℹCurrentdynamicIP:XXX.XXX.XX.XX.
ℹDryrunmodeon.
ℹTTLfor'A'record'@'onconfig:1800✔'A'record'@'forfoo.barfromGandiLiveDNS
ℹIPfor'A'record'@'onGandiLiveDNS:XXX.XXX.XXX.XXX
ℹTTLfor'A'record'@'onGandiLiveDNS:18000ℹUpdateneeded,dryrunmode,noupdatedone.
ℹTTLfor'A'record'*'onconfig:1800✔'A'record'*'fortoranja.techfromGandiLiveDNS
ℹIPfor'A'record'*'onGandiLiveDNS:XXX.XXX.XXX.XXX
ℹTTLfor'A'record'*'onGandiLiveDNS:1800ℹUpdateneeded,dryrunmode,noupdatedone./app/conffolder is not configurable once the Docker image has hardening
applyed and that is the writable folder.ImprovementsSome improvements that I have ff the top of my head:putcommand to create entries like CNAMES and so on.deletecommand to delete entriesbackupcommand to do backupsDocker Image to run giu with docker compose or as a Cronjob on Kubernetes.
Package: giup
GIUP - Git Interactive Update and PublishAllows to interactively perform hierarchical merges and run publishing commands in between.When commands fail the user is given the chance to intervene by rerunning the current command, just continuing, running a custom shell command or stopping the project, or the current merge path.Example WorkflowExample workflow from one of my Minecraft modding projects:.giup:{"merge-paths":["1.16","1.16->1.15->1.14","1.16->1.17"],"commands":[{"title":"Cleanup build directories","run":"rm -rf build .gradle","nt":"rmdir /S /Q build & rmdir /S /Q .gradle","ignore-errors":true},{"title":"Build and publish","run":"./gradlew publish","nt":"gradlew publish"},"git push"]}This consecutively merges:1.16to1.151.15to1.141.16to1.17After each merge GIUP cleans up, builds, publishes and pushes the code.Getting StartedTo install this project runpip install giup.To use this for your project create a.giupfile (as described below) in your project root and rungiup.Project SpecificationBy default, the project specification will be read from the.giupfile in the working directory. The specification should be defined in JSON and uses the following keys:merge-pathsHere you can specify certain merge hierarchies. You can either specify a hierarchy as a string delimited by arrows (->) or as an array with all branches (["1.16","1.15","1.14"]).Specifying a single branch will just switch to that branch and run the commands.commandsIn this array commands are specified.
Commands are specified as an object or a string, which is a short form for an object with therunkey.Therunentry should contain a string that will be run as a shell command. You can define overrides for Windows (nt) and POSIX (posix) shells.Thetitleentry is a string that optionally gets displayed when the command is run. If not defined, the command itself will be displayed before execution.Theignore-errorsentry is an optional boolean telling GIUP whether unsuccessful runs of the command should be treated as errors (on by default). This is useful e.g. when trying to delete a file withrmdirwhich might not exist.
Package: givemeconformer
givemeconformerDoes only one thing. Only one command. That's it.
Only helps me to havedkoes scriptas command.💪 Getting StartedTODO show in a very small amount of space theMOSTuseful thing your package can do.
Make it as short as possible! You have an entire set of docs for later.Command Line InterfaceThe givemeconformer command line tool is automatically installed. It can
be used from the shell with the--helpflag to show all subcommands:$givemeconformer--help🚀 InstallationThe most recent code and data can be installed directly from GitHub with:$pipinstallgit+https://github.com/kjappelbaum/givemeconformer.gitTo install in development mode, use the following:$gitclonegit+https://github.com/kjappelbaum/givemeconformer.git
$cdgivemeconformer
$pipinstall-e.👐 ContributingContributions, whether filing an issue, making a pull request, or forking, are appreciated. SeeCONTRIBUTING.rstfor more information on getting involved.👋 AttributionThis tool is based ondkoes script.⚖️ LicenseThe code in this package is licensed under the MIT License.🍪 CookiecutterThis package was created with@audreyfeldroy'scookiecutterpackage using@cthoyt'scookiecutter-snekpacktemplate.🛠️ For DevelopersSee developer instrutionsThe final section of the README is for if you want to get involved by making a code contribution.❓ TestingAfter cloning the repository and installingtoxwithpip install tox, the unit tests in thetests/folder can be
run reproducibly with:$toxAdditionally, these tests are automatically re-run with each commit in aGitHub Action.📦 Making a ReleaseAfter installing the package in development mode and installingtoxwithpip install tox, the commands for making a new release are contained within thefinishenvironment
intox.ini. Run the following from the shell:$tox-efinishThis script does the following:Uses BumpVersion to switch the version number in thesetup.cfgandsrc/givemeconformer/version.pyto not have the-devsuffixPackages the code in both a tar archive and a wheelUploads to PyPI usingtwine. Be sure to have a.pypircfile configured to avoid the need for manual input at this
stepPush to GitHub. You'll need to make a release going with the commit where the version was bumped.Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
usetox -e bumpversion minorafter.
Package: givenergy-modbus
GivEnergy ModbusA python library to access GivEnergy inverters via Modbus TCP on a local network, with no dependency on the GivEnergy
Cloud. This extendspymodbusby providing a custom framer, decoder and PDUs that are
specific to the GivEnergy implementation.⚠️ This project makes no representations as to its completeness or correctness. You use it at your own risk — if your
inverter mysteriously explodes because you accidentally set theBOOMTIMEregister or you consume a MWh of
electricity doing SOC calibration: youreallyare on your own. We make every effort to prevent you from shooting
yourself in the foot, so as long as you use the client and its exposed methods, you should be perfectly safe.Documentation:https://dewet22.github.io/givenergy-modbusGitHub:https://github.com/dewet22/givenergy-modbusPyPI:https://pypi.org/project/givenergy-modbus/Free software: Apache-2.0FeaturesReading all registers and decoding them into their representative datatypesWriting data to holding registers that are deemed to be safe to set configuration on the inverterHow to useUse the provided client to interact with the device over the network, and register caches to build combined state of a
device:importdatetimefromgivenergy_modbus.clientimportGivEnergyClientfromgivenergy_modbus.model.inverterimportModelfromgivenergy_modbus.model.plantimportPlantclient=GivEnergyClient(host="192.168.99.99")# change configuration on the device:client.enable_charge_target(80)# set a charging slot from 00:30 to 04:30client.set_charge_slot_1((datetime.time(hour=0,minute=30),datetime.time(hour=4,minute=30)))# set the inverter to charge when there's excess, and discharge otherwise. it will also respect charging slots.client.set_mode_dynamic()p=Plant(number_batteries=1)client.refresh_plant(p,full_refresh=True)assertp.inverter.inverter_serial_number=='SA1234G567'assertp.inverter.inverter_model==Model.Hybridassertp.inverter.v_pv1==1.4# Vassertp.inverter.e_battery_discharge_day==8.1# kWhassertp.inverter.enable_charge_targetassertp.inverter.dict()=={'inverter_serial_number':'SA1234G567','device_type_code':'3001','charge_slot_1':(datetime.time(0,30),datetime.time(7,30)),'f_ac1':49.98,...}assertp.inverter.json()=='{"inverter_serial_number": "SA1234G567", "device_type_code": "3001", ...'assertp.batteries[0].serial_number=='BG1234G567'assertp.batteries[0].v_battery_cell_01==3.117assertp.batteries[0].dict()=={'bms_firmware_version':3005,'design_capacity':160.0,...}assertp.batteries[0].json()=='{"battery_serial_number": "BG1234G567", "v_battery_cell_01": 3.117, ...'CreditsThis package was created withCookiecutterand
thewaynerv/cookiecutter-pypackageproject template.
Package: givt-pytorch
GIVT-PyTorchA partial implementation ofGenerative Infinite Vocabulary Transformer (GIVT)from Google Deepmind, in PyTorch.This repo only implements the causal version of GIVT, and does away with the k mixtures predictions or the use of the full covariance matrix, as for most purposes they did not yield significantly better results.The decoder transformer implementation is also modernized, adopting a Llama style architecture with gated MLPs, SiLU, RMSNorm, and RoPE.Install# for inferencepipinstall.# for training/developmentpipinstall-e'.[train]'Usagefromgivt_pytorchimportGIVT# load pretrained checkpointmodel=GIVT.from_pretrained('elyxlz/givt-test')latents=torch.randn((4,500,32))# vae latents (bs, seq_len, size)loss=model.forward(latents).loss# NLL Lossprompt=torch.randn((50,32))# no batched inference implementedgenerated=model.generate(prompt=prompt,max_len=500,cfg_scale=0.5,temperature=0.95,)# (500, 32)TrainingDefine a config file inconfigs/, such as this one:fromgivt_pytorchimport(GIVT,GIVTConfig,DummyDataset,Trainer,TrainConfig)model=GIVT(GIVTConfig())dataset=DummyDataset()trainer=Trainer(model=model,dataset=dataset,train_config=TrainConfig())Create an accelerate config.accelerateconfigAnd then run the training.acceleratelaunchtrain.py{config_name}TODOTest out with latents from an audio vaeAdd CFG with rejection samplingReferences@misc{litgpt2024,title={lit-gpt on GitHub},url={https://github.com/Lightning-AI/lit-gpt},year={2024}@misc{tschannen2023givt,title   = {GIVT: Generative Infinite-Vocabulary Transformers},author  = {Michael Tschannen, Cian Eastwood, Fabian Mentzer},year    = {2023},eprint  = {2312.02116},archivePrefix = {arXiv},primaryClass = {cs.CV}}
Package: givvableutils
IntroductionThis is a project to expose some of the utility tools used by givvable for easy version and use in projects throughout our code.To use this repo,pip install givvableutilsDB & BlobHelps connect to postgresql DB & Azure datalakeimportdbdb.get_conn(username='',password='',database='',host='')db.close_conn()importblobblob.initialize_storage_account(storage_account_name='',storage_account_key='')blob.list_directory_contents(container="data-synapse",directory="staging")DevelopingTo install givvableutils, along with the tools you need to develop and run tests, run the following in your virtualenv:pipinstall-e.[dev]python3setup.pybdist_wheel
python3setup.pysdist
twineupload--skip-existingdist/*
Package: giwaxs-gui
giwaxs-guiA graphical tool for GIWAXS data analysis.giwaxs-gui contains all the basic functionality for
the analysis of 2D diffraction images with circular symmetry.
In particular, it focuses on grazing-incidence wide-angle scattering
data analysis and its specific needs.DependenciesPyQt5numpyscipyopencv-pythonpyqtgraphh5pyInstallPip installTo install the current release via pip, you should have python installed
on your computer. The minimum required version is 3.6.0. Install package via pip:pipinstallgiwaxs-guiAfter installation you can launch the program:python
>>>fromgiwaxs_guiimportrun
>>>run()UsageOverviewThe program provides different tools for visualizing, detecting and fitting
Bragg reflections with circular or rotational symmetry on diffraction images.
The corresponding angular and radial positions and sizes of
detected diffraction reflections can be saved
for further analysis.The graphical interface consists of several functional widgets that can be dragged
over the window,
resized and hidden to optimize the analysis. One can show/hide widgets by clicking on corresponding
icons on the top left toolbar. Main widgets are:File manager (left)Image viewer (top center)Radial and angular profiles (bottom right)Control widget (top right)Interpolation widget (not shown)In the following some of these widgets are described in detail.File managerFile manager allows to add files and folders to the file tree. Image viewer
automatically updates image based on selected file. It also shows Properties item containing
info about measurement geometry and added segments. All the changes are held by
file widget which allows processing many images simultaneously. The data and
found segments can be saved to .h5 file.Available extensionsAvailable files extensions to read from:.tif(f).edf.h5Please note that the currently used .edf reader is written for
specific extension of .edf files used on some x-ray facilities. h5 file
reading is powered by h5py library, and .tiff files are read via opencv-python
package. Hence, the current list can be easily extended by the number of
image extensions supported by opencv library.Both H5 files parsing and folder parsing are designed in a way that they
read only the content of groups/folders which are selected. It may accelerate reading huge
h5 files if they are well structured.Image viewerImage viewer provides options for setting geometry (beam center,
axes scale, image transformations - geometry toolbar on top left)
and adopting the view by changing the colormap
and its bounds (histogram widget on the right). An added segment
immediately appears on the image viewer. Currently this widget does not
support moving segments by dragging, but provides its visualization.Radial profile
Package: giwyn
# GiwynGiwyn (forGiwyn is what you need) is a software to manage all your git clones, stored in your own computer.
Giwyn will scan your computer to search all`.git`directories, to list them in an hidden configuration file (`.giwyn`, in yourHOMEdirectory) and allows you to manage all of them with one simple command.# UsageSteps:First time, let`giwyn`scan your computerfrom a specific directory(like~for yourHOMEdirectory).This step can take a while…After that, you can use some commands to specify what`giwyn`has to do : list all your git projects and their properties, to verify if your commits has to be push, etc…If you don’t ask to Giwyn to scan your repository again, Giwyn will work only on git repositories saved in the hidden configuration file.
Also, if Giwyn see that a git repository is deleted, he will automatically remove the link from the hidden configuration file.# Options`--help`,`-h`: print the help`--scan`,`-s`: scan your entire repository from yourHOMEdirectory, or another specified directory, and append the result of this command in the hidden configuration file`--rescan`,`'R`:replacedata in your hidden configuration file by the result of the scan from yourHOMEdirectory, or another specified directory`--pull`,`-p`: pull all your clean git repositories`--push`,`-P`: push all your clean git repositories`--version`,`-v`: version of the software (for pip)`--debug`,`-d`: allow the debug mod# InstallationWith pip3 :`sudo pip3 install giwyn`, or`sudo pip3 install giwyn--upgrade`if you already have`giwyn`# CommentsIf you want to store your username and password for each git repository, make sure to add this command for each one :`git config credential.helper store`# Main developerCarette Antonin# ContributorsJohn Doe# ContactCarette Antonin - antonin.carette[at]gmail[dot]com
Package: gixi
gixiEnd-to-end pipeline for GIXD data analysisThe package is used in the following scientific publication:[1]End-to-end deep learning pipeline for real-time processing of
surface scattering data at synchrotron facilitiesV. Starostin,
L. Pithan,
A. Greco,
V. Munteanu,
A. Gerlach,
A. Hinderhofer,
and F. Schreiber
(submitted 2022)
Package: giza-actions
Actions SDKThe Actions SDK is a Python library designed to facilitate the development of ZKML applications on the Giza platform. It provides a set of decorators and classes to define tasks, actions, and models, and to handle data inputs.Where to start?Check out our extensivedocumentationto understand concepts and follow how-to-guides.InstallationStart by creating a virtual environment in your project directory and activate it:$python-mvenv.env# Activate the virtual environment. On Linux and MacOs$source.env/bin/activate# Activate Virtual environment on Windows:$.env/Scripts/activateNow you’re ready to install ⚡Actions with the following command:$pipinstallgiza-actionsSetupFrom your terminal, create a Giza user through our CLI in order to access the Giza Platform:$gizauserscreateAfter creating your user, log into Giza:$gizausersloginOptional: you can create an API Key for your user in order to not regenerate your access token every few hours.$gizauserscreate-api-keyTo create Actions Runs you will need a Giza Workspace, create it executing the following command in your terminal:$gizaworkspacescreateUsageDefining TasksA task is a function that represents a distinct segment of work in a Giza Actions workflow. Tasks provide a way to encapsulate parts of your workflow logic in traceable, reusable units across actions.Tasks are defined using the@taskdecorator. Here's an example:fromgiza.taskimporttask@taskdefpreprocess():print(f"Preprocessing...")Defining ActionsAn action serves as a framework for coding ML inferencing workflow logic, enabling users to tailor the behaviour of their workflows.Actions are defined using the@actiondecorator. Here's an example:fromgiza.actionimportaction@action(name="My Action")definference():print(f"Running inference...")Deploy ActionsDeployments are server-side representations of actions. They keep essential metadata required for remote orchestration, including when, where, and how a workflow should run. Deployments transform workflows from functions that need to be manually activated to API-managed entities capable of being triggered remotely.We can easily create a deployment by creating the Action object and then calling the serve function in the entrypoint script:fromgiza_actions.actionimportAction,actionfromgiza_actions.taskimporttask@taskdefprint_hello():print(f"Hello Action!")@actiondefhello_world():print_hello()if__name__=='__main__':action_deploy=Action(entrypoint=hello_world,name="hello-world-action")action_deploy.serve(name="hello-world-action-deployment")Running this script will do two things:Create a deployment called "hello-world-action" for your action in the Giza Platform.Stay running to listen for action runs for this deployment; when a run is found, it will be asynchronously executed within a subprocess locally.ExamplesExamples of how to use the Actions SDK can be found in theexamplesdirectory. Each example includes a README or a Notebook with detailed instructions on how to run the example.ContributingContributions are welcome! Please submit a pull request or create an issue to get started.LicenseThe Giza SDK is licensed under the MIT license.
Package: giza-cli
Giza Command Line Interface_______  __   ________      ___           ______  __       __
 /  _____||  | |       /     /   \         /      ||  |     |  |
|  |  __  |  | `---/  /     /  ^  \       |  ,----'|  |     |  |
|  | |_ | |  |    /  /     /  /_\  \      |  |     |  |     |  |
|  |__| | |  |   /  /----./  _____  \     |  `----.|  `----.|  |
 \______| |__|  /________/__/     \__\     \______||_______||__|Welcome to Giza CLI!This CLI provides the utilities to interact with Giza using the terminal.Disclaimer: this is still in an experimental stage so the functionality is subject to change.Giza Command Line Interface🚀 InstallationRecommended installation with pipxInstall from PyPiInstalling from source📚 Documentation🌟 What's new🤝 Join the community!Contributors ✨License🚀 InstallationRecommended installation with pipxpipxallows to install the dependency in an isolated environment. With this we can make sure that it does not conflict with any of our installed dependencies.pipxinstallgiza-cliInstall from PyPiFor the latest release:pipinstallgiza-cliInstalling from sourceClone the repository and install it withpip:gitclonegit@github.com:gizatechxyz/giza-cli.gitcdgiza-clipipinstall.Or install it directly from the repo:pipinstallgit+ssh://git@github.com/gizatechxyz/giza-cli.git📚 DocumentationYou can check our official docshere.Examplesincludes examples on how to use the CLI functionalities.Resourcesbrings the documentation of the different resources and actions that can be done with the CLI.🧠Referencefor the API reference and internals of the CLI.🌟 What's newFor a detailed list of changes, please refer to theCHANGELOGfile.🤝 Join the community!Join the community and help build a safer and transparent AI in ourDiscord!Contributors ✨Thanks goes to these wonderful people (emoji key):Gonzalo Mellizo💻omahs📖Fran Algaba📖This project follows theall-contributorsspecification. Contributions of any kind welcome!LicenseMIT
Package: giza-osiris
OsirisOsiris is a Python library for data conversion and management. It is designed to facilitate the transformation of data into Cairo programs. The library supports various input and output formats including CSV, Parquet, and Numpy, with a primary focus on generating Cairo files that represent the data. This makes the data easily consumable in Cairo programs, providing an efficient and optimized process for data conversion.InstallationUse the package managerPoetryto install osiris.poetryaddgiza-osirisLocal DevelopmentTo setup local development environment, clone the repository and install dependencies using Poetry.gitclonehttps://github.com/gizatechxyz/osiris.gitcdosiris
poetryinstallFeaturesSupports various input and output formats including CSV, Parquet, and Numpy. The primary focus is on generating Cairo files that represent the data.Efficient data conversion and management. The conversion process is optimized for transforming data into Cairo format, which makes the data easily consumable in Cairo programs.UsagePython APIfromosirisimportconvertconvert(input_file='data.csv',output_file='data.cairo',input_format='csv',output_format='cairo')CLIosirisexamples/preprocessed_image.npydata.cairo--input-formatnumpy--output-formatcairoContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: giz-exceptions
It's Exception lib for Gizwits PaaS Usage.How to userequirementpython >= 3for now.installpipinstallgiz-exceptionsconfig insettings.pybase onDjango REST FrameworkREST_FRAMEWORK={'EXCEPTION_HANDLER':'giz_exceptions.handler.custom_handler'}usagefromrest_framework.viewsimportAPIViewfromgiz_exceptions.paasimportexceptionsclassMyView(APIView):defget(self,request,*args,**kwargs):...ifnotself.request.condition:raiseexceptions.ProductKeyInvalid# or with detail message# raise exceptions.ProductKeyInvalid('This required product key')