Saravanan666/pypi-org huggingface dataset:
Package: xatlas
Python bindings for xatlas(Unofficial) Python bindings forxatlas, a library that generates texture coordinates for triangle meshes.InstallationFrom sourcegitclone--recursivehttps://github.com/mworchel/xatlas-python.git
pipinstall./xatlas-pythonUsing PippipinstallxatlasUsageParametrize a mesh and export itimporttrimeshimportxatlas# We use trimesh (https://github.com/mikedh/trimesh) to load a mesh but you can use any library.mesh=trimesh.load_mesh("input.obj")# The parametrization potentially duplicates vertices.# `vmapping` contains the original vertex index for each new vertex (shape N, type uint32).# `indices` contains the vertex indices of the new triangles (shape Fx3, type uint32)# `uvs` contains texture coordinates of the new vertices (shape Nx2, type float32)vmapping,indices,uvs=xatlas.parametrize(mesh.vertices,mesh.faces)# Trimesh needs a material to export uv coordinates and always creates a *.mtl file.# Alternatively, we can use the `export` helper function to export the mesh as obj.xatlas.export("output.obj",mesh.vertices[vmapping],indices,uvs)# Both `xatlas.parametrize` and `xatlas.export` also accept vertex normalsParametrize multiple meshes using one atlasmesh1=trimesh.load_mesh("input1.obj")mesh2=trimesh.load_mesh("input2.obj")atlas=xatlas.Atlas()atlas.add_mesh(mesh1.vertices,mesh1.faces)atlas.add_mesh(mesh2.vertices,mesh2.faces)# Optionally parametrize the generation with# `xatlas.ChartOptions` and `xatlas.PackOptions`.atlas.generate()vmapping1,indices1,uvs1=atlas[0]vmapping2,indices2,uvs2=atlas[1]Repack multiple parametrized meshes into one atlasvertices1,indices1,uvs1=load_mesh_with_uvs("input1.obj")vertices2,indices2,uvs2=load_mesh_with_uvs("input2.obj")atlas=xatlas.Atlas()atlas.add_uv_mesh(uvs1,indices1)atlas.add_uv_mesh(uvs2,indices2)atlas.generate()vmapping1,indices1,uvs1=atlas[0]vmapping2,indices2,uvs2=atlas[1]Query the atlasatlas.mesh_count# Number of mesheslen(atlas)# Convenience binding for `atlas.mesh_count`atlas.get_mesh(i)# Data for the i-th meshatlas[i]# Convenience binding for `atlas.get_mesh`atlas.width# Width of the atlasatlas.height# Height of the atlasatlas.utilization# Utilization of the first atlasatlas.get_utilization(i)# Utilization of i-th atlas# The image requires passing custom PackOptions:#   pack_options = xatlas.PackOptions()#   pack_options.create_image = True#   atlas.generate(pack_options=pack_options)atlas.chart_image# Debug image of the first atlasatlas.get_chart_image(i)# Debug image of the i-th atlas...# See xatlas documentation for all propertiesLicenseThe xatlas Python bindings are provided under a MIT license. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.ReferencesTest model taken from theABC dataset
Package: x-atp-cli
X-ATP CLI ClientX automated test platform command line client.usage:x-atp-cli[-h][-v][-d][-rATP_SERVER_URL][-tTEST_TYPE][-nWORKSPACE_NAME]XATPCLIClient(Xautomatedtestplatformcommandlineclient)optionalarguments:-h,--helpshowthishelpmessageandexit-v,--versionOutputclientversioninformation-d,--demoCreatex_sweetest_exampleprojectinthecurrentdirectory-rATP_SERVER_URL,--runATP_SERVER_URLRunX-ATPautomatedtestexecutionsideservice(E.gx-atp-cli-rhttp://127.0.0.1-tapi)-tTEST_TYPE,--typeTEST_TYPEClientRuntestTypeapi|web(usedwithparameter-r)-nWORKSPACE_NAME,--nameWORKSPACE_NAMETheidentifiernameoftheexecutionworkspace(usedwithparameter-r)
Package: xattr
xattr is a Python wrapper for extended filesystem attributes.xattr also ships with anxattrcommand line tool for viewing and
editing extended filesystem attributes. On platforms that support or
ship with the attr package, you may prefer to use thegetfattrandsetfattrcommand line tools from the attr package.Extended attributes extend the basic attributes of files and directories
in the file system.  They are stored as name:data pairs associated with
file system objects (files, directories, symlinks, etc).Extended attributes are currently only available on Darwin 8.0+ (Mac OS X 10.4)
and Linux 2.6+. Experimental support is included for Solaris and FreeBSD.Python 3.8+ is required as of v1.0.0, and this is the minimum version
that is compatible with Python 3.12+.Versions older than v1.0.0 are no longer supported, but are
available for use. v0.10.1 is the last version to support older versions
of Python (including 2.7).Note: On Linux, custom xattr keys need to be prefixed with theusernamespace, ie:user.your_attr.Note: If you need to read or write Spotlight metadata attributes on macOS,
seeosxmetadatawhich provides a native macOS means to do so without
directly manipulating extended attributes. osxmetadata also provides access
to other macOS metadata attributes and extended attributes via xattr.
Package: xattr-compat
xattr-compatSupport for extended attributes on multiple platforms. Also includes a mutable mapping class for easy access to file xattrs.No C modules have to be compiled to use this library and it has no dependencies. The ctypes module in the standard library is used to make the required libc calls. Performance should be fine for all purposes. I mean, it's just xattrs, who is making so many xattr calls from Python that they need something above and beyond this?UsageThe package exports thegetxattr,listxattr,removexattrandsetxattrfunctions. They have identical function signatures to theversions implemented in the os module in the standard library.There's also a classXattrsthat provides a simple mutable mapping over a file's extended attributes:# class Xattrs(path: os.PathLike, follow_symlinks: bool = True)importxattr_compatxattrs=xattr_compat.Xattrs("./my_file")xattrs["user.humanfund.xattr"]=b"hello\0world"print("Extended attributes:",xattrs.items())LicenseMITSponsorshipDevelopment of xattr-compat is sponsored byPro Football History.com, your source for NFL coaching biographies.
Package: xautic
Live reloading with Python!According tothiswidely accepted StackOverflow answer,
Live reloading reloads or refreshes the entire app when a file changes. For example,
if you were four links deep into your navigation and saved a change, live reloading would
restart the app and load the app back to the initial route. And that’s what this module does!The inspiration behind writing this module comes the python based web frameworks,FlaskandDjango.
These beast of a packages provide not only the best and easiest public APIs for creating and deploying
websites but also provide one nifty feature oflive reloading. The feature is subtle but effective
and mostly productive. Ability to quickly reload and execute the code comes handy when you are trying
to meet the deadlines. One just needs to write, modify and save files as they wish and voila! You have
the latest execution.The usage of this module is as simple and intuitive as it gets. Just slap a decorator on your target
function and letxauticdo its work.InstallationInstall and update usingpip:$pipinstall-UxauticExample# Save this file as example.pyfromxauticimportdebug@debugdeffunc():return"Hello World"$python3example.pyStartingxauticv1.0.1livereloading(/home/example.py)onThuMay04,2021-13:23:00,pressCTRL+Ctoquit
Package: xavier
Xavier is a bot framework. Specially built to operate on AWS Lambda.Exampleimportosimportloggingimportsysfromxavier.activeimportregister_brainfromxavier.brainimportBrainfromxavier.aws.funcimportbuild_lambda_routerfromxavier.slack.slashimportSlashCommandEventfromxavier.httpimportResponse,Routerfromxavier.offlineimportBackgroundQueuefromxavier.aws.snsimportpublish_sns_message,handle_sns_message,handle_sns_schedulexavier=Brain(env=env)register_brain(xavier_bot)background_queue=BackgroundQueue(publish_sns_message('arn:background_task'))router=Router()@background_queue.task()defoffline_find(slash_command):ifslash_command.text=='Hi':slash_command.respond({'text':"Howdy"})else:slash_command.respond({'text':"Hi"})@router.add_route("/slack/commands/hello",methods=['POST'])defhandle_find(request):slash_command=SlashCommandEvent.from_request(request)offline_task.delay(slash_command)returnResponse(204,"")@background_queue.task(schedule=['aaa'])defoffline_cron(slash_command):...lambda_schedule_hander=handle_sns_schedule(background_queue.process_schedule)lambda_sns_handler=handle_sns_messages(background_queue.process_event)lambda_http_handler=build_lambda_router(router)
Package: xavier-themes
DescriptionThis library is used to create panels on the terminal. Besides that, it can also create beautiful colorful text or make something that is still related to the 2 above.Examplefromxavier_themes.panelimportPanelPanel("aku sayang kamu")You can add parameters : widht, colorpanel, colortextfromxavier_themes.panelimportPanelPanel("aku sayang kamu",widht=50,colorpanel="GREEN",colortext="BLUE")You can create a panel that adjusts the size of the text by adding : widht="FIT" or widht="fit"fromxavier_themes.panelimportPanelPanel("aku sayang kamu",widht="FIT")Valid Color List• RED
• GREEN
• YELLOW
• BLUE
• ORANGE
• CYAN
• WHITE
• BLACK
• DEFAULT/NO_COLORSpecial Thanks For- Dapunta Khurayra
- Angga Kurniawan
- Latip Harkat
- Nanta XE
- Rizky Dev
- ExtremeBoyLicenseUse MIT License (MIT). Please seeLicense Filefor more information license.
Package: x-axis-lib
check if 2 x axis are overlappingpython library for checking whether 2  x axis are overlappingexpected params lists/sets/tuplesreturned value is abooleanInstallation:pip3 install x_axis_libUsage:from x_axis.overlap import overlapping

result1 = overlapping([1, 2], [34, -2]) # True
result2 = overlapping((5, 10,), (1, 4,)) # False
result3 = overlapping({56, 100}, {49, 23}) # False
Package: xbasin
xbasinPython package to compute diagnostics of idealized basin global circulation models. NEMO oriented for now. Deals with terrain-following coordinates.2020-11-02: The vertical transformation function should not be used anymore, see thexgcmpackage that is the new reference.What's newv0.0.5Bug fix in surface buoyancy fluxes nemo wrapAdd option to choose T, S, and depth names in eos nemo_wrap
Package: xbatcher
Xbatcher is a small library for iterating Xarray DataArrays and Datasets in
batches. The goal is to make it easy to feed Xarray objects to machine
learning libraries such asPyTorchorTensorFlow. View thefor more
info.InstallationXbatcher can be installed from PyPI as:python -m pip install xbatcherOr via Conda as:conda install -c conda-forge xbatcherOr from source as:python -m pip install git+https://github.com/xarray-contrib/xbatcher.gitNoteThe required dependencies installed with Xbatcher areXarray,Dask, andNumPy.
You will need to separately installTensorFloworPyTorchto use those data loaders or
Xarray accessors.Review the installation instructionsfor more details.DocumentationDocumentation is hosted on ReadTheDocs:https://xbatcher.readthedocs.orgLicenseApache License 2.0, see LICENSE file.
Package: xbcf
**WARNING: Alpha code under development**# XBCF: eXtensible Block Compression FormatXBCF is a container format designed for indexed block compression on Amazon S3 or similar distributed storage systems with high seek latencies. It supports the following features:* Configurable compression codec* Configurable block encryption codec* Seeking support, with granularity equal to the compression block size (1MB by default)* Recursive encapsulation of XBCF containers* Multiple worker nodes can independently upload parts of the same multi-part upload, each formatted as XBCF* At close time, a higher-level XBCF is concatenated from the parts## DependenciesThis proof-of-concept implementation works in Python.```pip install snappy lz4 numpy boto```## Format specification* Magic header (8 bytes) == "XBCF" (0-padded)* Level (8 bytes) (unsigned int; if level is 0, blocks are raw data; otherwise, blocks are themselves XBCF-formatted)* Compression method (8 bytes) == "LZ4" (0-padded)* Reserved (8 bytes) (padding to 32 bytes)* Cipher name (16 bytes) == "AES-CBC" or "null" (0-padded)* IV (16 bytes)(If cipher != "null", all subsequent data is encrypted.)* Block size (uncompressed) (unsigned int; 8 bytes); if size is 0, block size is variable and block size table is present* Number of blocks (unsigned int; 8 bytes)* Reserved (16 bytes) (padding to 32 bytes)* Block start offset table (8 bytes * (Number of blocks))* If block size is 0:* Block size table (uncompressed sizes) (8 bytes * (Number of blocks))* Blocks
Package: xbcfg
====xbcfg====Introduction============xbcfg is a yet another X-CTU replacement for Linux machines,which currently supports XBee Series 2 modules.The XBeeConfig class wraps AT commands, getting into the bootloader andflashing the firmware for XBee Series 2 modules.If you're interested in adding support for other similar modules,feel free to mail me a unit.Installing==========End users should rely on pip::sudo pip install xbcfgUsage=====With the utility you may fetch information about the XBee module::localhost ~ # xbcfg statusModule status=============Association indication: Successfully formed or joined a networkChannel: 0x10 (2.430 GHz)Supply voltage: 3344 mV (2100-3600mV ok)Module configuration====================Network idenfitier: 0x3332Node idenfier: XB-0013A2004079C29EPacketization timeout: 3 secNode discover timeout: 4.00 secBaud rate: 9600Encryption enabled: FalsePower level: 2.00 dBmDestination address: 0x0013a200408b1a4aModule information==================Serial number: 0x0013a2004079c29eMaximum payload: 84 bytesHardware version: 0x194aModule type: XBeeRevision: 74Firmware version: 0x20a7Variant: ZigBee compatibleOperation: Coordinator, transparent operationVersion: 10Revision: 7Reset configuration::localhost ~ # xbcfg reset --destination-address 0x000000000000ffffRestoring defaults ...Restarting firmware ...The list of available configuratoin options::localhost ~ # xbcfg reset -husage: xbcfg reset [-h] [--verbosity LEVEL] [--device DEVICE] [--baud BAUD][--destination-address ADDRESS] [--channel CHANNEL][--node-identifier ID] [--network-identifier 0x3332][--enable-encryption] [--encryption-key 0xDEADC0DE][--node-discover-timeout SECONDS]XBee configuration and flashing utilityoptional arguments:-h, --help            show this help message and exit--verbosity LEVEL, -v LEVELSet verbosity (info, debug)--device DEVICE, -d DEVICESerial port--baud BAUD, -b BAUD  Initial baudrate for serial connection--destination-address ADDRESS, -da ADDRESSDestination address (64-bit integer), defaults tobroadcast--channel CHANNEL, -ch CHANNELChannel (11-26)--node-identifier ID, -ni IDNode identifier (20-character ASCII string)--network-identifier 0x3332, -id 0x3332Network identifier (16-bit integer)--enable-encryption, -eeEnable encryption--encryption-key 0xDEADC0DE, -psk 0xDEADC0DEEncryption key (32-bit integer)--node-discover-timeout SECONDS, -nd SECONDSAnd the final cherry on the top - firmware flashing capability::localhost ~ # xbcfg flash --operation end-deviceYou're about to flash: ~/.xbee/ebl_files/XB24-ZB_28A7.eblPress Enter to continue or Ctrl-C to bail out like a wimp!Successful flash, restarting firmwareThanks======Thanks to everyone who made this utility possible:http://ftp1.digi.com/support/documentation/90000866_A.pdfhttp://examples.digi.com/wp-content/uploads/2012/07/XBee_ZB_ZigBee_AT_Commands.pdfhttp://www.microchip.com/forums/m304986-print.aspxhttps://github.com/roysjosh/xbee-comm/http://www.klozoff.ms11.net/maxstream/xbee-bootloader-info.txt
Package: xbee900-HIT
xbee900_HITInstallationpython3-mpipinstallxbee900_HITExamplesendfromxbee900_HITimportxbeeimportlogginglogging.basicConfig(filename='xbee.log',format='%(asctime)s%(message)s',level=logging.INFO)defsend():device=xbee.Xbee('/dev/tty.usbserial-2',9600)withopen('3KB.txt','rb')asf:data=f.read()# broadcastdevice.send_packet(data)withopen('1KB.txt','rb')asf:data=f.read()# point2pointdevice.send_packet(data,remoteAddr="0013A20041BB7684")send()receivefromxbee900_HITimportxbeeimportlogginglogging.basicConfig(filename='xbee.log',format='%(asctime)s%(message)s',level=logging.INFO)defreceive():device=xbee.Xbee('/dev/tty.usbserial-1',230400)whileTrue:data,remote=device.receive_packet()print(f'from{remote}:length of data:{len(data)},receive data:{data}')receive()
Package: xbeetransmission
# xbeetransmission`xbeetransmission` is a python module is designed to reliably and securely send messages over Xbee modules in out-of-the-box configuration.## Getting Started`xbeetransmission` can be installed as a module, or downloaded directly from Github.#### Installed as a module`xbeetransmission` can be installed directly via pip:```bashpip install pshtt```#### Usage and examples```pythonimport xbeetransmissionxbeesend(data, serial_interface_of_xbee, "Symmetric Key Value")xbeereceive(serial_interface_of_xbee, "Symmetric Key Value", "outputfilename.txt")```## Troubleshooting* Ensure that you are running the code as sudo to interact with the Xbee module* Ensure that your serial interface is correct (should start with /dev/ttyUSB)* See example files for reference## Hardware I Used* XBEE Pro 900 MHz* 900 MHz Rubber Duck Antenna* XBee USB Dongle## Recommendations* Encrypt the message before sending with Public/Private keys
Package: xbench
EXtraction BENCHmark (xbench)XBenchis a Swiss Army Knife for working with document processing tools on the command line. It is developed byImpirabut strives to be neutral and support a wide variety of platforms over time. It includes utilities for generating synthetic documents, evaluating documents against different services, saving their results, recreating them in other services, and comparing (benchmarking) their results.See theXBench docsfor more information on how to install and use XBench.
Package: xbin
xbinFancy Spatial Binning (Hashing)Free software: Apache Software License 2.0Documentation:https://xbin.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.5 (2018-07-10)add numba support0.1.5 (2018-03-28)maybe working, covrad seems reasonable-ish0.1.2 (2018-03-07)add basic bt24cell stuffFirst release on PyPI.
Package: xbitdiff
xbitdiffWe store lot of redundant information, and in the era of big data, those costs add up.xbitdiffis a simple wrapper aroundxarrayfor differential compression.
Given two data sets---a source and a target---differential compression stores the source and the difference
between the source and the target, known as a diff.
When coupled with compression, the size of the diff can be substantially smaller than the size of the target.
How well differential compression works depends on the correlation (redudancy) between the source and the target.
The namexbitdiffis an homage toxbitinfobut the packages are not directly related.xbitdiffcan be install usingpippipinstallxbitdiff
Package: xbitinfo
xbitinfo: Retrieve information content and compress accordinglyThis is anxarray-wrapper aroundBitInformation.jlto retrieve and apply bitrounding from within python.
The package intends to present an easy pipeline to compress (climate) datasets based on the real information content.How the science worksPaperKlöwer, M., Razinger, M., Dominguez, J. J., Düben, P. D., & Palmer, T. N. (2021). Compressing atmospheric data into its real information content. Nature Computational Science, 1(11), 713–724. doi:10/gnm4jjVideoJulia RepositoryBitInformation.jlHow to installPreferred installationconda install -c conda-forge xbitinfoAlternative installationpip install xbitinfo# ensure to install julia manuallyHow to useimportxarrayasxrimportxbitinfoasxbds=xr.tutorial.load_dataset(inpath)bitinfo=xb.get_bitinformation(ds,dim="lon")# calling bitinformation.jl.bitinformationkeepbits=xb.get_keepbits(bitinfo,inflevel=0.99)# get number of mantissa bits to keep for 99% real informationds_bitrounded=xb.xr_bitround(ds,keepbits)# bitrounding keeping only keepbits mantissa bitsds_bitrounded.to_compressed_netcdf(outpath)# save to netcdf with compressionCreditsMilan KlöverforBitInformation.jlCookiecutterandaudreyr/cookiecutter-pypackage
Package: xblock-free-text-response
XBlock to capture a free-text response.This package provides an XBlock for use with the EdX Platform and makes
it possible for instructors to create questions that expect a
free-text response.InstallationSystem AdministratorTo install the XBlock on your platform,
add the following to yourrequirements.txtfile:xblock-free-text-responseYou’ll also need to add this to yourINSTALLED_APPS:freetextresponseCourse StaffTo install the XBlock in your course,
access yourAdvanced Module List:Settings -> Advanced Settings -> Advanced Module Listand add the following:freetextresponse
Package: xblock-image-modal
A full-screen image modal XBlock,
for use within the OpenEdX platform.The full-screen image tool is another way of enabling participants to
see more detail in your provided images. This tool is useful for large
images with lots of details. A re-sized version of the image displays in
the page, but clicking on the image pops open a full-screen modal with
the full-size version of the image.InstallationSystem AdministratorTo install the XBlock on your platform,
add the following to yourrequirements.txtfile:xblock-image-modalYou’ll also need to add this to yourINSTALLED_APPS:imagemodalCourse StaffTo install the XBlock in your course,
access yourAdvanced Module List:Settings -> Advanced Settings -> Advanced Module Listand add the following:imagemodalUseCourse StaffTo add a full-screen image to your course:upload the image file onto your course’s Files & Uploads pagenote: you can skip this step if you’ve already uploaded the image
elsewhere, e.g.: S3.copy the URL on that pagego to a unit in Studioselect “Image Modal XBlock” from the Advanced Components menuYou can now edit and preview the new component.Using the Studio editor, you can edit the following fields:display nameimage URLthumbnail URL (defaults to image URL, if not specified)description (useful for screen readers, longer descriptions)alt text (useful for screen readers, captions, tags; displays when image does not)ParticipantsClick on the image to zoom in full-screen.Click on the image again to zoom out.Click and drag to pan around.View a demo of the CMSView a demo of the LMS
Package: xblock-proctor-exam
Proctor Exam XblockXblock restricting access to course test to Proctor Exam monitoring process.InstallationInstall this package withpipusing FUN package indexvia:$pipinstall--extra-index-urlhttps://pypi.fury.io/openfunxblock-proctor-examAlternatively, if you intend to work on this project, clone this repository
first, and then make an editable installationvia:$pipinstall-e".[dev]"ConfigurationProctor Exam xblock relies onConfigurable LTI Consumerwhich should also be installed in Python environment, therefore it also use its Django settings for configuration,
seeConfigurable LTI Consumer documentation.A typical Proctor Exam LTI configuration should look like this:LTI_XBLOCK_CONFIGURATIONS=[{"shared_secret":"TestSharedSecret","oauth_consumer_key":"TestOauthConsumerKey","display_name":"",# this is required to let xblock register itself in studio"is_launch_url_regex":False,"automatic_resizing":None,"inline_ratio":None,"ignore_configuration":True,"show_button":False,"pattern":".*fun\.proctorexam\.com/lti\?id=(?P<exam_id>[0-9]+)","hidden_fields":["display_name","description","lti_id","launch_target","inline_height","accept_grades_past_due","ask_to_send_username","ask_to_send_email","custom_parameters","has_score","hide_launch","modal_height","modal_width","weight","button_text"],"defaults":{"launch_target":"new_window","lti_id":"proctor_exam",},}]configurable-lti-providealso allows to set LTI OAuth credentials in LTI_XBLOCK_CONFIGURATION,
or in an other constant LTI_XBLOCK_SECRETS which then can be stored in encrypted vault.LTI_XBLOCK_SECRETS={"proctor_exam":{"shared_secret":"TestSharedSecret","oauth_consumer_key":"TestOauthConsumerKey",}}Or they can be set at course level in advanced settingsAdd finally,proctor_examto the list of advanced modules in the
"advanced settings" of a course.Please note that the workbench included in the present repository is running a standard configuration with fake credentials. (seeconfig/settings.yml.dist)