Saravanan666/pypi-org huggingface dataset:
Package: xprintidle
# python-xprintidle
A cffi wrapper around xprintidle.This uses a modified version of xprintidle.c fromhttps://github.com/pmaia/xprintidle-plus- I’m fairly sure I’ve satisfied the GPL but not 100% sure. Please let me know if there’s an issue!Usage/docs coming soon.For now:` import xprintidle print xprintidle.idle_time() `## RequireslibX11libXssa c compiler and python dev headers## Installationpip install xprintidle
Package: xprintlog
xprintlog无侵入帮助你替换将函数内部的print函数替换为logging安装pipinstallxprintlog使用直接使用装饰器进行装饰# test.pyimportxprintlogasxprint@xprint.xprint()deftest():print(111)test()#[.\test.py:6 - test][DEBUG] - 111使用类似于logging的方式，进行等级设置importxprintlogasxprint@xprint.xprint(print_level=xprint.INFO,level=xprint.DEBUG)deftest():print(111)test()# [.\test.py:7 - test][INFO] - 111@xprint.xprint(print_level=xprint.DEBUG,level=xprint.INFO)deftest1():print(111)test1()# 这里没有输出支持函数嵌套，且函数间互不影响importxprintlogasxprint@xprint.xprint(print_level=xprint.INFO,level=xprint.DEBUG)deftest():print(111)@xprint.xprint(print_level=xprint.DEBUG,level=xprint.INFO)deftest1():print(111)test()test1()# [.\test.py:7 - test][INFO] - 111
Package: xproc
xprocInstallpipinstall-UxprocSupport commandsxproc memorxproc memoryxprocmemTIMEKERNELUSERMemFreeMemTotal21:19:371345876kB13143712kB10079620kB24624680kB21:19:381345964kB13143796kB10079612kB24624680kB21:19:391345964kB13143804kB10079612kB24624680kB21:19:401345964kB13143808kB10079644kB24624680kB21:19:411345964kB13143808kB10079580kB24624680kBxprocmem-e"Active,Inactive,Active(anon),Inactive(anon),Active(file),Inactive(file)"TIMEActiveInactiveActive(anon)Inactive(anon)Active(file)Inactive(file)21:21:194397264kB8727816kB173164kB128kB4224100kB8727688kB21:21:214397404kB8727816kB173300kB128kB4224104kB8727688kB21:21:234397404kB8727816kB173300kB128kB4224104kB8727688kB21:21:254397404kB8727816kB173300kB128kB4224104kB8727688kB21:21:274397404kB8727816kB173300kB128kB4224104kB8727688kBxproc vmstatxprocvmstat15TIMEallocstall_movableallocstall_normalcompact_failcompact_free_scannedcompact_isolatedcompact_migrate_scannedcompact_stallcompact_success10:15:01409085501083447544343462565610:15:02409085501083447544343462565610:15:03409085501083447544343462565610:15:04409085501083447544343462565610:15:054090855010834475443434625656xproc loadxprocload13TIMELOAD_1_MINLOAD_5_MINLOAD_15_MINNR_RUNNINGNR_TOTALLAST_PID14:28:340.070.180.151316207310214:28:350.070.180.151316207310214:28:360.070.180.1513162073102
Package: xprofile
A tool to manage and automatically apply xrandr configurations.xprofileis compatible with and tested on python versions:2.62.73.23.33.4installationA universal installation method is to use pip (the pip package is availablehere):$ pip install --upgrade xprofileBefore installingxprofilewith pip see if a package for your Operating
System exists.To installxprofilefor arch linux you can use theAUR package:# This is an example using yaourt
$ yaourt -S xprofileusageOncexprofilehas been installed you can execute the following command to get
some help:$ xprofile --help
usage: xprofile [-h] [--verbose] [--config CONFIG] [--version]
                {list,current,generate,activate} ...

A tool to manage and automatically apply xrandr configurations.

optional arguments:
  -h, --help            show this help message and exit
  --verbose             output more verbosely
  --config CONFIG       config file to read profiles from
  --version             show program's version number and exit

subcommands:
  The following commands are available

  {list,current,generate,activate}
    list                list all available xrandr profiles
    current             get information about the current active profile
    generate            generate a new profile and print to stdout
    activate            activate the given profile or automatically select oneTo get detailed help for a specific subcommand use:$ xprofile [subcommand] --helpOr refer to thexprofile(1) andxprofilerc(5) man pages.licensexprofileis licensed under GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007The GNU General Public License is a free, copyleft license for software and
other kinds of works.For the full license information refer to theLICENSEfile in the github
repository.
Package: xprompt-client
XPrompt clientclient for XPromptExampleimport xprmopt
api_key_response = xprompt.login(user_email='..', password='..')

xprompt.api_key = api_key_response['access_token']
xprompt.openai_api_key = ""


prompt = """tell me a joke"""

r = xprompt.OpenAIChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": prompt}], temperature=0)
print(r)Publish clientupdate the xprompt-common version inpyproject.tomlbump version inpyproject.tomlpoetry buildpoetry publishgit tag -a v0.1.0 -m "version 0.1.0"Test out the client publishedcreate a new venvinstall the clientpip install xpromptrun the example above
Package: xpt2046-circuitpython
skip to docsxpt2046-circuitpythonA CircuitPython (or Adafruit-Blinka) library which reads values from an XPT2046 chip, commonly found on cheap microcontroller TFT displays.installationThis project is available on PyPi:pip3installxpt2046-circuitpythonOr, to install it manually:gitclonehttps://github.com/humeman/xpt2046-circuitpythoncdxpt2046-circuitpython
pip3install.If you're using this on regular Linux rather than CircuitPython, make sure you alsoinstall Adafruit Blinka.usageBe sure to enable SPI insudo raspi-configbefore proceeding.sample wiringTFTBoardGPIOPin #T_CLKSPI0 SCLKGPIO1123T_CSGPIO631T_DINSPI0 MOSIGPIO1019T_DOSPI0 MISOGPIO921T_IRQGPIO2215examplesThe most basic read example is:importxpt2046_circuitpythonimporttimeimportbusioimportdigitaliofromboardimportSCK,MOSI,MISO,D6,D22# Pin configT_CS_PIN=D6T_IRQ_PIN=D22# Set up SPI bus using hardware SPIspi=busio.SPI(clock=SCK,MOSI=MOSI,MISO=MISO)# Create touch controllertouch=xpt2046.Touch(spi,cs=digitalio.DigitalInOut(T_CS_PIN),interrupt=digitalio.DigitalInOut(T_IRQ_PIN))# Check if we have an interrupt signaliftouch.is_pressed():# Get the coordinates for this touchprint(touch.get_coordinates())Some more examples:read.py: A simple program which continuously prints coordinates when the screen is pressedadafruit-ili.py: A simple drawing program for an ILI9341 display controlled by the Adafruit display library
Package: xptcleaner
xptcleanerxptcleaner package provides functions for creating json file for vocabulary mappings and for Standardizing SEND xpt files (SAS v5 Transport format) using CDISC controlled terminologies.InstallationUsing pipProbably the easiest way: from your conda, virtualenv or just base installation do:pip install xptcleanerIf you are running on a machine without admin rights, and you want to install against your base installation you can do:pip install xptcleaner --userUsing source archive or using wheel fileYou can choose to install xptcleaner using source archive or using wheel file.Using source archive:
Using the below shell command to install the xptcleaner package, assume that the source archive is under 'dist' sub folder. Replace {version} with the correct version number, e.g. 1.0.0.$ py -m pip install ./dist/xptcleaner-{version}.tar.gzUsing wheel:
Using the below shell command to install the xptcleaner package, assume that the wheel file is under 'dist' sub folder. Replace {version} with the correct version number, e.g. 1.0.0.$ py -m pip install ./dist/xptcleaner-{version}-py3-none-any.whlThe following required python packages will be installed during the xptcleaner package installation:* pandas

* pyreadstatFunctionsgen_vocab(in_file, out_path)Create json file for vocabulary mappings.
    Keys are synonyms and values are the CDISC Controlled Terminology Submission values.
    Vocabularies are defined by column values from the tab-delimited files.
    
    Parameters
    ----------
    in_file : str
        List of tab-delimited files with synonyms and preferred terms.
    out_path : str
        output json filename.standardize_file(input_xpt_dir, output_xpt_dir, json_file)Standardizes SEND xpt files using CDISC controlled terminologies.
    Here is the list of CDISC codelist supported.
    - Sex
    - Strain/Substrain
    - Species
    - SEND Severity
    - Route of Administration Response
    - Standardized Disposition Term
    - Specimen
    - Non-Neoplastic Finding Type
    - SEND Control Type
	
     Parameters
    ----------
    input_xpt_dir : str
        input folder name with xpt files under the folder.
    output_xpt_dir : str
        output folder name for writing the cleaned xpt files.
    json_file : str
        json filename used for mapping.How to usexptcleaner can be used from python script and from R script.Use xptcleaner from python script# xptcleaner and module xptclean importimportxptcleanerfromxptcleanerimportxptclean#input CDISC and Extensible CT files.infile1="{path to CT file}/SEND_Terminology_EXTENSIBLE.txt"infile2="{path to CT file}/SEND Terminology_2021_12_17.txt"#output JSON filejsonfile="{path to CT file to be created}/SENDct.json"#Call the gen_vocab function with the input and output filesxptclean.gen_vocab([infile1,infile2],jsonfile)#Call the standardize_file function to clean the xpt filerawXptFolder="{path to xpt files}/96298/"cleanXptFolder="{path to cleaned xpt files}/96298/"xptclean.standardize_file(rawXptFolder,cleanXptFolder,jsonfile)Use xptcleaner from R scriptxptcleaner is integrated with sendigR package. refer to installation and usage onsendigR.
Package: xptools
xptoolsAnalysis tools for experimental sciences to display images, detect particles (cells, bubbles, crystals), moving fronts and analyze their shape, size and distibution.Installationxptools is on PyPI so you can install it straight from pip with the commandpip install xptoolsAlternatively, you can clone the repository to your local computer and install from sourcegit clone https://github.com/hlgirard/xptools
cd xptools
pip install .Scriptsanalyze_front - This scipt takes a directory containing video files. For each file, it asks the user to select a region of interest
and processes the selected area with a minimum threshold to find the largest area. It then plots the height of this area as
a function of time.analyze_front --plotly --scale 60 --framerate 30 moviedirectory/analyze_bubbles - This script takes a movie (or directory of movies) showing bubbles on a surface (bright on dark). It uses a watershed segmentation algorithm to identify the bubbles and characterize their size. It then plots the bubble density and mean size as a function of time.analyze_bubbles --plotly --scale 60 bubble_movie.avianalyze_crystals - This script takes a directory containing pictures of droplets containing crystals (under cross polarization). It uses a thresholding algorithm to segment the crystals, count them and measure their size.analyze_crystals --plotly --key funct_key.txt imagedirectory/display_image_matrix - Arranges all the images in a directory as a matrix and saves the resulting imagedisplay_image_matrix --lines 10 --compress imagedirectory/UtilitiesSeveral utilities are included in the submodule utils including:select_roi:select_rectangle - Prompts the user to make a rectangular selection on the passed image and returns the coordinates of the selection.videotools:open_video - Opens a video file as a list of np.arrays each containing one frame of the video.videotools:determine_threshold - Determines the threshold to use for a video based on the minimum threshold algorithm.videotools:obtain_cropping_boxes - Prompts the user to select the region of interest for each video file. Returns a dataframe containing the coordinates of the selected area for each file.imagetools:open_all_images - Opens all the images in a folder and returns a list of cv2 images.Example usageimportpandasaspdfromxptools.utilsimportvideotoolsvideo_list=['Film1.avi','Film2.avi']dict_crop=videotools.obtain_cropping_boxes(video_list)forkey,valindict_crop:stack=videotools.open_video(key)(minRow,minCol,maxRow,maxCol)=valstack=[img[minRow:maxRow,minCol:maxCol]forimginstack]process(stack)NotebooksSegmentationBroadSpectrum.ipynb - Tests different image segmentation techniques to determine which is most appropriateSegmentationFocused.ipynb - Implements a specific analysis and plots the resulting size and number distributions for the particlesWatershed_Segmentation.ipynb - Implements Watershed segmentation.CreditsCode for display_image_matrix adapted fromhttps://gist.github.com/pgorczak/95230f53d3f140e4939c#file-imgmatrix-pyLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details.
Package: xpublish
XpublishPublish Xarray Datasets to the webA quick exampleServerside: Publish a Xarray Dataset through a rest APIds.rest.serve(host="0.0.0.0",port=9000)Client-side: Connect to a published datasetThe published datasets can be accessed from various kinds of client applications, e.g., from within Python using Zarr and fsspec.importxarrayasxrimportzarrfromfsspec.implementations.httpimportHTTPFileSystemfs=HTTPFileSystem()http_map=fs.get_mapper("http://0.0.0.0:9000/zarr/")# open as a zarr groupzg=zarr.open_consolidated(http_map,mode="r")# or open as another Xarray Datasetds=xr.open_zarr(http_map,consolidated=True)Or to explore other access methods, openhttp://0.0.0.0:9000/docsin a browser.Why?Xpublish lets you serve/share/publish Xarray Datasets via a web application.The data and/or metadata in the Xarray Datasets can be exposed in various forms throughpluggable REST API endpoints.
Efficient, on-demand delivery of large datasets may be enabled with Dask on the server-side.Xpublish'splugin ecosystemhas capabilities including:publish on-demand or derived data productsturning xarray objects into streaming services (e.g. OPeNDAP)How?Under the hood, Xpublish is using a web app (FastAPI) that is exposing a
REST-like API with builtin and/or user-defined endpoints.For example, Xpublish provides by default a minimal Zarr compatible REST-like API with the following endpoints:zarr/.zmetadata: returns Zarr-formatted metadata keys as json strings.zarr/var/0.0.0: returns a variable data chunk as a binary string.Futher endpoints can be added by installing or writing plugins.
Package: xpublish-edr
xpublish-edrXpublishrouters for theOGC EDR API.Documentation and codeURLs for the docs and code.InstallationForcondausers you cancondainstall--channelconda-forgexpublish_edror, if you are apipuserspipinstallxpublish_edrExampleimportxarrayasxrimportxpublishfromxpublish.routersimportbase_router,zarr_routerfromxpublish_edr.cf_edr_routerimportcf_edr_routerds=xr.open_dataset("dataset.nc")rest=xpublish.Rest(datasets,routers=[(base_router,{"tags":["info"]}),(cf_edr_router,{"tags":["edr"],"prefix":"/edr"}),(zarr_router,{"tags":["zarr"],"prefix":"/zarr"}),],)Get in touchReport bugs, suggest features or view the source code onGitHub.License and copyrightxpublish-edr is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).Development occurs on GitHub athttps://github.com/gulfofmaine/xpublish-edr/issues.
Package: xpublish-intake
xpublish-intakeAnxpublishplugin for serving intake catalogsWhy?As data access services are moved from custom APIs intoxpublishplugins, data users need a way to discover these new plugins as they become available without changing their analysis code. One way to standardize dataset access for those that can be loaded viaintakeis to provide anintakecatalog of the plugins endpoints.IdeasThis plugin currently supports thexpublish.plugins.included.zarr.ZarrPluginplugin (which isintakecompatible). In the future it would be nice if this library did not have to understand each and every plugin that isintakecompatible and left it up to the plugin authors to addintakecatalog support into their access services where applicable. This library could provide a mixin forxpublishplugins to use to register their endpoints in a standard way to then be advertised in anintakecatalog.InstallationForcondausers you cancondainstall--channelconda-forgexpublish_intakeor, if you are apipuserpipinstallxpublish_intakeSetupTheintakeplugin will be automatically discoverd byxpublishif you have the library installed. This will work for most users if you don't need to customize the endpoints.If you specify your plugins manually you will need to addIntakePluginto thepluginsargument ofxpublish.Restor register theIntakePluginexplicitly.fromxpublish_intake.pluginsimportIntakePlugin# Included in the `plugins` maprest=Rest(...plugins={...'intake':IntakePlugin()})# Registered explicitlyrest=Rest(...)rest.register_plugin(IntakePlugin())UsageTheintakeplugin is by default configured withapp_router_prefix='/intake'which creates the/intake.yamlroute for the rootintakecatalog containing all datasets in anxpublish.Restinstance. By default that route is available athttp://.../intake.yaml.dataset_router_prefix=''which creates an/datasets/[name]/catalog.yamlrouter for all datasets in thexpublish.Restinstance. By default those route are available athttp://.../datasets/[name]/catalog.yaml.Get in touchReport bugs, suggest features or view the source code onGitHub.License and copyrightxpublish_intakeis licensed under the MIT License.Development occurs on GitHub athttps://github.com/axiom-data-science/xpublish-intake.
Package: xpublish-intake-provider
Xpublish-Intake-ProviderXpublish-Intake-Provider allows serving datasets with Xpublish specified by Intake catalogs.InstallationForcondausers you cancondainstall--channelconda-forgexpublish_intake_provideror, if you are apipuserspipinstallxpublish_intake_providerExampleCurrently this package includes one plugin which can load an
Intake catalog and serve it's datasets via/datasets/{dataset_id}.You can register the plugin multiple times in order to serve
multiple catalogs as long as each gets its own name.fromxpublish_intake_providerimportIntakeDatasetProviderPluginrest=xpublish.Rest({})rest.register_plugin(IntakeDatasetProviderPlugin(name="gfs-datasets",uri="https://raw.githubusercontent.com/axiom-data-science/mc-goods/main/mc_goods/gfs-1-4deg.yaml"))rest.register_plugin(IntakeDatasetProviderPlugin(name="gomofs-datasets",uri="https://raw.githubusercontent.com/axiom-data-science/mc-goods/main/mc_goods/gomofs.yaml"))Get in touchReport bugs, suggest features or view the source code onGitHub.License and copyrightxpublish_intake_provider is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).Development occurs on GitHub athttps://github.com/ioos/xpublish_intake_provider.
Package: xpublish-opendap
xpublish_opendapOpenDAP endpoint plugin for Xpublish.InstallationForcondausers you cancondainstall--channelconda-forgexpublish-opendapor, if you are apipuserspipinstallxpublish-opendapOnce it's installed, the plugin will register itself with Xpublish and OpenDAP endpoints will be included for each dataset on the server.Get in touchReport bugs, suggest features or view the source code onGitHub.License and copyrightxpublish_opendap is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).Development occurs on GitHub athttps://github.com/xpublish-community/xpublish_opendap.
Package: xpublish-wms
xpublish-wmsXpublishrouters for theOGC WMS API.InstallationForcondausers you cancondainstall--channelconda-forgexpublish_wmsor, if you are apipuserspipinstallxpublish_wmsOnce it's installed, the plugin will register itself with Xpublish and WMS endpoints will be included for each dataset on the server.Dataset RequirementsAt this time, only a subset of xarray datasets will work out of the box with this plugin. To be compatible, a dataset must contain CF compliant coordinate variables forlat,lon,time, andvertical.timeandverticalare optional.Currently the following grid/model types are supported:Regularly spaced lat/lon grids (Tested with GFS, GFS Wave models)Curvilinear grids (Tested with ROMS models CBOFS, DBOFS, TBOFS, WCOFS, GOMOFS, and CIOFS models)FVCOM grids (Tested with LOOFS, LSOFS, LMHOFS, and NGOFS2 models)SELFE grids (Tested with CREOFS model)2d Non Dimensional grids (Tested with RTOFS, HRRR-Conus models)Supporting new grid/model typesIf you have a dataset that is not supported, you can add support by creating a newxpublish_wms.Gridsubclass and registering it with thexpublish_wms.register_grid_implfunction. See thexpublish_wms.gridsmodule for examples.Get in touchReport bugs, suggest features or view the source code onGitHub.License and copyrightxpublish-wms is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).Development occurs on GitHub athttps://github.com/xpublish-community/xpublish-wms.SupportWork on this plugin is sponsored by:IOOS(github) funds work on this plugin via the"Reaching for the Cloud: Architecting a Cloud-Native Service-Based Ecosystem for DMAC"project being led byRPS Ocean Science.
Package: xpubsub
xpubsubA basic pubsub module for communications within an app.This project is an excercise to help me develop skills relating to:writing a Python modulepublishing modules on pypiusing:gitpytestpyenvpoetrymypytoxYou would probably be better off usingPyPubSubInterfacefromxpubsubimportPubSubpub=PubSub()HashOrList=Union[Hashable,list[Hashable]]pub.add(topic_list:HashOrList,callback:Callable):pub.remove(topic_list:HashOrList,callback:Callable):pub.send(topic_list:HashOrList,message:Any):Example: example.pyfromxpubsubimportPubSubpub=PubSub()defhello(topic,message):print(topic,message)defgoodbye(topic,msg):print("😭",topic,msg)pub.add("hi",hello)pub.add(["SHTF!","go away"],goodbye)pub.send("hi","👋😍")pub.send("SHTF!","Head For The Hills!")pub.send("go away","its over")pub.remove("go away",goodbye)pub.send("go away","nothing happens")# this does nothing!Outputhi 👋😍
😭 SHTF! Head For The Hills!
😭 go away its over
Package: xpuls-mlmonitor
Welcome to xpuls.ai 👋MLMonitor - Automatic Instrumentation for ML FrameworksWebsite|Docs|Blog|Twitter|CommunityRoadmap 🚀FrameworkStatusLangchain✅LLamaIndexPlannedPyTorchPlannedSKLearnPlannedTransformersPlannedStable DiffusionNext💡 If support of any framework/feature is useful for you, please feel free to reach out to us viaDiscordor Github Discussions🔗 InstallationInstall from PyPIpipinstallxpuls-mlmonitor🧩 Usage Examplefromxpuls.mlmonitor.langchain.instrumentimportLangchainTelemetryimportos# Enable this for advance tracking with our xpuls-ml platformos.environ["XPULSAI_TRACING_ENABLED"]="true"# Add default labels that will be added to all captured metricsdefault_labels={"service":"ml-project-service","k8s_cluster":"app0","namespace":"dev","agent_name":"fallback_value"}# Enable the auto-telemetryLangchainTelemetry(default_labels=default_labels,xpuls_host_url="http://app.xpuls.ai"# Optional param, required when XPULSAI_TRACING is enabled).auto_instrument()## [Optional] Override labels for scope of decorator [Useful if you have multiple scopes where you need to override the default label values]@TelemetryOverrideLabels(agent_name="chat_agent_alpha")defget_response_using_agent_alpha(prompt,query):agent=initialize_agent(llm=chat_model,verbose=True,agent=CONVERSATIONAL_REACT_DESCRIPTION,memory=memory)res=agent.run(f"{prompt}.\nQuery:{query}")ℹ️ Complete Usage GuidesLangchain Framework+Grafana Template🧾 LicenseThis project is licensed under the Apache License 2.0. See the LICENSE file for more details.📢 ContributingWe welcome contributions to MLMonitor! If you're interested in contributing.If you encounter any issues or have feature requests, please file an issue on our GitHub repository.💬 Get in touch👉Join our Discord community!🐦 Follow the latest from xpuls.ai team on Twitter@xpulsai