Saravanan666/pypi-org huggingface dataset:
Package: xtex2svg
Project Page :rod2ik/xtex2svgThis project is part of other mkdocs-related projects.If you're interested, please consider having a look at this page for a more complete list of all our mkdocs-related projects:https://eskool.gitlab.io/mkhack3rs/Initial Influences and History :For All newer Credits: Rodrigo Schwencke atrod2ik/xtex2svg3Initially inspired by Ryan Marcus atRyanMarcus/tex2svgLicences:Rodrigo Schwencke :GPLv3+
Package: xt-FlaskAPIDocs
flask-api-docsInterface automation document based on flashInstallationIt is possible to install the tool with pip:pip install xt-FlaskAPIDocsUsageSample usage:fromflaskimportFlaskfromflask_api_demo.test.HelloWorldimportHelloWorldfromflask_docsimportBluePrint,Docsapp=Flask(__name__)a=BluePrint('hello',__name__)a.add_url_rule('/hello','hello',HelloWorld().hello_world,methods=['GET'],args={"test1":'str',"test2":'int'})a.add_url_rule('/bye','bye',HelloWorld().bye_world,methods=['GET'],args={"test1":'str',"test2":'int'})app.register_blueprint(a)Docs(app,hide_docs=True)
Package: xtgeo
IntroductionXTGeo is a LGPL licensed Python library with C backend to support
manipulation of (oil industry) subsurface reservoir modelling. Typical
users are geoscientist and reservoir engineers working with
reservoir modelling, in relation with RMS. XTGeo is developed in Equinor.Detailed documentation forXTGeo at ReadtheDocsFeature summaryPython 3.8+ supportFocus on high speed, using numpy and pandas with C backendRegular surfaces, i.e. 2D maps with regular sampling and rotation3D grids (corner-point), supporting several formats such as
RMS and EclipseSupport of seismic cubes, usingsegyioas backend for SEGY formatSupport of well data, line and polygons (still somewhat immature)Operations between the data types listed above; e.g. slice a surface
with a seismic cubeOptional integration with ROXAR API python for several data types
(see note later)Linux is main development platform, but Windows and MacOS (64 bit) are supported
and PYPI wheels for all three platforms are provided.InstallationFor Linux, Windows and MacOS 64bit, PYPI installation is enabled:pip install xtgeoFor detailed installation instructions (implies C compiling), see
the documentation.Getting startedimportxtgeo# create an instance of a surface, read from filemysurf=xtgeo.surface_from_file("myfile.gri")# Irap binary as defaultprint(f"Mean is{mysurf.values.mean()}")# change date so all values less than 2000 becomes 2000# The values attribute gives the Numpy arraymysurface.values[mysurface.values<2000]=2000# export the modified surface:mysurface.to_file("newfile.gri")Note on RMS Roxar API integrationThe following applies to the part of the XTGeo API that is
connected to Roxar API (RMS):RMS is neither an open source software nor a free software and
any use of it needs a software license agreement in place.
Package: xtgeoviz
xtgeovizUtility functions for plotting xtgeo objects.Installxtgeoviz is available from PyPI.pipinstallxtgeovizUsageimportxtgeoviz.plotasxtgplotimportxtgeosurf=xtgeo.surface_from_file("somemap.gri")xtgplot.quickplot(surf)DocumentationThe documentation can be found athttps://equinor.github.io/xtgeoviz.Developing & ContributingAll contributions are welcome. Please see theContributing documentfor more details and instructions for getting started.LicenseThis software is released under the LGPLv3 license.
Package: xthematic
xthematic=========modify, save and load terminal colors in a convenient manner.Quick Demo~~~~~~~~~~A demo youtube video is available below that showcases the following:-  set colors from the terminal through hex codes:-  save the current colors as a theme with some name-  activate a theme in the terminal|xthematic demo gif|Installation~~~~~~~~~~~~python 3.6+ and pip are required... code:: bashpip install xthematicDevelopment version'''''''''''''''''''.. code:: bashgit clone https://github.com/taesko/xthematic.git && cd xthematicpip install --user .Logging setup (optional)''''''''''''''''''''''''Logs are written to /var/log/xthematic.log if this file doesn't exist orcan't be created because of permissions a warning is printed when theapp is invoked. Backups logs are written to$XDG_CONFIG_HOME/xthematic/logs. You need to create the/var/log/xthematic.log file with r/w permissions if you want to avoidthis... code:: bashsudo touch /var/log/xthematic.logsudo chown username: /var/log/xthematic.logBasic Usage~~~~~~~~~~~Complete help can be found at ``xthematic --help``.The single executable ``xthematic`` is split into 3 subcommands -``view``, ``color`` and ``theme``xthematic view^^^^^^^^^^^^^^View colors in various formats through the terminal.Takes a variable number of arguments in a colorview format and prints aline with specific text, foreground and background colors.the colorview format is made out of 3 fields seperated by ':' and fieldscan be left empty to specify default values.``{foreground_hex}:{background_hex}:{string}``Note - '#' can be omitted at the start of hex codes.e.g. ``FF0000:00FF00:"Hello World"`` - print "Hello World" with red textand green background. \`FF0000::"Hello World"' - print "Hello World"with red text and default background.xthematic color^^^^^^^^^^^^^^^View or set terminal colors.Takes two arguments - ``color_id`` and ``color``\ (optional). The firstmust be an integer between 0 and 16 while the second a valid hex code(the '#' can be omitted)If only color_id is supplied the respectful terminal color is printed.If both arguments are supplied that terminal color is set to the hexvalue until the terminal session is closed.xthematic theme^^^^^^^^^^^^^^^Activate, save and deactivate themes.Takes a single argument - a name of a theme. Without any other optionalarguments prints the colors of the theme to the terminal. If a themename is not given it prints the current terminal colors.Use the -a, -s, -d feature switches to activate, save or deactivatethemes.Documentation~~~~~~~~~~~~~Man or info pages are not written the most complete documentation is:``xthematic --help``License~~~~~~~This project is licensed under the MIT License - see the`LICENSE <https://github.com/taesko/xthematic/blob/master/LICENSE.txt>`__file for details.Authors~~~~~~~-  Antonio TodorovAcknowledgements~~~~~~~~~~~~~~~~-  the `pywal <https://github.com/dylanaraps/pywal>`__ project forinspiration and example of code printing escape sequences which waspart of the earliest version... |xthematic demo gif| image:: https://img.youtube.com/vi/w0SPD3lVWHE/0.jpg:target: https://www.youtube.com/watch?v=w0SPD3lVWHE
Package: xtheme
XTHEMETheme manager for people who are tired of writing tons of config files.
Inspired bybudRich/mondo.Installgitclonehttps://github.com/rtnx/xthemecdxtheme
pipinstall--user.ThemesTheme files are intomlformat. There's no requirements for them,
they are there for you to set variable that will be used later in generators.GeneratorsGenerators include:template.jinja2 - template for config file using variables from theme.config.toml     - configuration file.pre-apply.sh    - script executed before applying themepost-apply.sh   - script executed after applying theme.config.toml:[config]name='i3'target='/home/rtgnx/.i3/config'# target file to which template is rendered
Package: xthread
Threading for human.FeaturesSome of main features:Support pause/unpauseSupport termination thread non-preemtivelyInstallationYou can install xthread from PyPi$pipinstallxthreadUsageimporttimefromxthreadimportThreaddeftarget(executor):print("Running...")time.sleep(1)thread=Thread(target)# Running...# Running...thread.pause()thread.unpause()# Running...# Running...thread.stop()
Package: xtictoc
Xtictoc (Tic-Tac-Toe) GameWelcome to Xtictoc, a simple console-based Tic-Tac-Toe (XO) game in Python.InstallationYou can install the game usingpip:pipinstallxtictocHow to PlayTo start the game, open a terminal and run:xtictocFollow the prompts to make your moves and enjoy playing Tic-Tac-Toe against a bot opponent.DevelopmentIf you'd like to contribute to the development of this game or explore the source code, feel free to check out the GitHub repository.LicenseThis game is licensed under the MIT License - see the LICENSE file for details.
Package: xtify
AboutPython library for using theXtifyweb service API for mobile push notifications.RequirementsTested using Python 2.7, it will probably work on older versions. For versions
of Python 2.5 or earlier``simplejson`` will need to be installed.FunctionalityAs of version 0.1 only the Xtify Push API 2.0 is implemented. Mostly because it
was the only one I needed, at least for now….Available Classes:
PushNotification, PushContent, PushAction, PushRichContentUsage Examples>>> import xtify
>>> pushNotif = xtify.PushNotification(appKey='myAppKey', apiKey='myApiKey)
>>> pushNotif.sendAll=True
>>> pushNotif.content.subject='greetings earthling'
>>> pushNotif.content.message='take me to your leader'
>>> pushNotif.push()>>> import xtify
>>> pushContent = xtify.PushContent(
    subject='greetings earthling', message='take me to your leader')
>>> pushNotif = xtify.pushNotification(
    appKey='myAppKey', apiKey='myApiKey', sendall=True, content=pushContent)
>>> pushNotif.push()
Package: xtimeout
`中文 <https://github.com/amos402/py-xtimeout/blob/master/README_zh.md>`__=======================Check function with timeout for tracing or handle it====================================================Feature=======-  Check a function call is timeout or not.-  The timeout callback and function call are on the same thread.-  Multi-thread support. Nest call support.Usage=====.. code:: pythondef on_timeout(start_time: float):""":param start_time:"""traceback.print_stack()pdb.set_trace()raise Exception("time_out")# time unit is millisecond@pymonitor.check_time(10, on_timeout)def function_1():passdef function_2():with pymonitor.check_context(20, on_timeout):# do somethingwith pymonitor.check_context(10, on_timeout):# do somethingImplementation Comparison=========================Here are some comparisons of the other implementations.-  Use ``signal`` module and emit a signal-  Only works in main thread.-  Not good for nest call becauseof one signal correspond onehandler.If you need nest support you need to enter the timeout functioncontinuallyand call ``alarm``. The cost depend on your accuracy.-  Support Linux only.-  Start new thread for work and join it with a time, if it had timeout,handle with it (eg. terminate it)-  Can’t inject the function call.-  Overhead from threading.-  Use ``sys.settrace`` keep tracing for each-  A huge cost for that.
Package: xtimetracker
xtimetrackerSimple time tracking from the command line.Overviewxtimetrackerhelps you manage your projects and track your time. It is a command line tool (x) with a simple set of commands and options.It was born as a forkof theWatson projectand it maintains compatibility with its JSON file format. It aspires to be a simple, maintained, and extendable (using plugins) time tracking software.InstallingYou can install it usingpiplike this:$pipinstallxtimetrackerUsageStart tracking your activity via:$xstartresearch+experiment-alphaWith this command, you have started a newframefor theresearchproject with theexperiment-alphatag.Now stop tracking via:$xstopStopping project research [experiment-alpha], started 30 minutes ago and stopped just now. (id: 5c57b13)You can view a log of your latest working sessions using thelogcommand:$xlogTuesday 26 January 2020 (8m 32s)ffb2a4c  13:00 to 13:08      08m 32s   research [experiment-alpha]Please note that, as the report command, thelogcommand comes with projects, tags and dates filtering.To list all available commands use:$xhelpLicenseCopyright (C) 2020 David AlfonsoThis work is licensed under multiple licenses.All original source code is licensed under GPL-3.0-or-later.All code borrowed fromthe Watson project <https://github.com/TailorDev/Watson>_ is licensed under the MIT license.SPDX-License-Identifier: GPL-3.0-or-later AND MITFor more accurate information, you can check the individual files.
Package: xtip
XtipA semi-clone of tanin47'stipbut for X11 (i.e. Linux).Alpha stage, anything may change at any time.Customised in python (but it's very easy to run shell commands from python if
you prefer another language).Installation and setupInstall the core dependencies:zenity,dmenu,xclipe.g. on Debian-based OS:sudo apt install zenity xclip suckless-toolsInstall xtip from pypi, e.g.pip3 install xtipBind a hotkey to run thextipcommand using your preferred method.I usesxhkd, but I think most
desktop environments have a hotkey binding system.Optionally install dependencies for any individual commands that you want to use:GoogleTranslate requires the python googtrans libraryEmacsclient requires emacs (obviously)Writing your own commandsFor most customisation of commands you should probably just write your own
(because it only takes a few lines of python). You can write new commands in~/.config/xtip/custom_commands.py.To do so: write a new class derived fromCommandand decorate it with@command, for example:from typing import Optional
from subprocess import run

from xtip.commands import Command, command


@command
class Emacsclient(Command):
    unique_name = "Open in emacsclient"

    def run(self, text: str) -> Optional[str]:
        # TODO(david): Figure out a way to get the absolute path... maybe by
        # guessing from a few possible prefixes?
        run(["emacsclient", "-c", "-n", text])

        # Return text from here to output it to the screen and clipboard
        return None

    def accepts(self, text: str) -> bool:
        # TODO: only accept things that look like valid paths?
        Return TrueTODO: Do we need both inheritence and a decorator? Probably not!TODOWrite some testsCI buildsTry to display useful outputs in dmenu completion (e.g. converted datetimes)Something better than dmenu? Better mouse support, popup at cursor.Figure out how to construct an absolute path from a relative one
Package: xtkinter
xtkinter介绍xtkinter是基于tkinter的python Ui窗口设计模块，是tkinter库的扩展，添加了更灵活的自定义窗口设计以及主题样式的可视化修改安装教程可使用pip install xtkinter 下载安装最新该模块在gitee平台上下载源代码git clonehttps://gitee.com/yuhypython/xtkinter.git案例用xtkinter的自定义窗口功能开发的窗口，该案例模仿网络上一个用PyQt设计的UI框架，用xtkinter模块也可以轻松实现比较美观的界面，而且代码量很少，非常简单易用。该案例是xtkinter基于本身开发的主题创建器themeCreator, 可以使用以下代码打开，并对现有主题修改或创建新的主题，详见使用说明from xtkinter.xtkthemes import themeCreator as thcthc.themeCreator()调用themeCreator()方法就会打开如下的界面，该界面也基于xtkinter模块自身开发的使用说明介绍： xtkinter主要分为两部分，一部分是更加灵活的自定义窗口； 另一部分就是主题创建器themeCreator.第一章：xtkinter 的自定义窗口1.  主窗口的自定义设计 xtk_tk

    首先是导入模块 from xtkinter.windows import xtk_tk as xtk

    说明： 对于窗口的设计，因为原有的tkinter窗口的标题栏及窗口外形无法更多的修改，所以在xtkinter中去掉了原有的tkinter标题        
          栏，然后重新创建标题栏，可以随意设置。所以在使用中如果需要传统的tkinter标题栏，可以直接使用tkinter.Tk() 
          或 使用封装后xtk.Tk()，都是在调用原tkinter的窗口；如果想自定义窗口则使用xtk下的三个窗口对象。
    
    在该模块下有三个窗口对象： 
        CanvasRoundedWindow ：自定义圆角形窗口
            使用 
                root = xtk.CanvasRoundedWindow() 
                    
                root.mainloop()
            就可以调用一个简单的圆角形窗口

            而对窗口的设置是通过对象的属性来调整的， 以下是CanvasRoundedWindow对象的属性
            
            icon : 标题的图标，是str类型，为图片的地址,
            title: 标题的内容，str类型,
            title_height : 标题栏的高度 int,
            title_frame_bg:标题栏的背景色,
            main_frame_bg:窗口主框架的背景色,
            inner_bd: 窗口内边框的宽度,
            win_width:窗口的宽度,
            win_height:窗口的高度,
            win_transparent_color: 窗体的透明色，即tkinter中-transparentcolor的属性
            win_bg: 窗体的背景色, 一般和title_frame_bg的值相同,
            win_outline_color: 窗体的外边框的颜色,
            win_outline_width: 窗体的外边框的宽度,
            radii:窗体圆角的大小, 此属性值为0时，窗体为方角，和CornerWindow一样都能做成方角窗口,
            
            举例：
                root = xtk.CanvasRoundedWindow(icon='xxx/image.png', title='测试', title_height=28, 
                                        title_frame_bg='#21252b', main_frame_bg='#ffffff', inner_bd=2, 
                                        win_width=1200, win_height=800, win_transparent_color='#21253b',
                                        win_bg='#21252b',win_outline_color='#bbbbbb', win_outline_width=2, 
                                        radii=10)
                
                root.mainloop()
            此外该对象还包括两个框架，root.title_frame 标题框架 和 root.main_frame 窗口主框架 

        CornerWindow： 自定义方角形窗口，与 CanvasRoundedWindow对象的使用方法相同  


2.  置顶窗口的自定义设计 xtk_toplevel
    
    这个和xtk_tk相同，同样有CanvasRoundedWindow 和 CornerWindow 两个对象，使用方法同上

3.  窗体内窗口的自定义设计  xtk_inner_window

    xtk_inner_window 是在主窗体内的窗口，同样也有CanvasRoundedInnerWindow 和 CornerInnerWindow 两个对象，使用方法同上

    ![输入图片说明](assets/3.png)第二章：主题创建器themeCreator的使用xtkinter中提供了一个可视化的修改主题样式的功能，如下图：

    ![输入图片说明](assets/1.png)

    在这里面可以新建或修改主题，这里面只涉及图形化主题，即控件的整体外观都是由图片组成的，所以除了一些颜色属性外，就是图片，比如: 按钮的各种外观，你可以自己上传图片，也可以用自定义生成图片，然后保存。 

    最后使用xtkinter中的样式模块引用你修改或创建的主题，比如：你创建了一个aaaa的主题，就可以用下面的代码设定。

    from xtkinter.xtkthemes.xtk_themes import ThemedStyle

    style = ThemedStyle()
    style.set_theme('xttk')
Package: xtlib
XTlib: Experiment Tools LibraryXTlib is an API and command line tool for scaling and managing Machine Learning (ML) experiments.XTLib enables you to efficiently organize and scale your ML experiments.
Our tools offer an incremental approach to adoption, so you can immediately realize benefits to your research from using XTlib.XTlib Key FeaturesXTlib scales your ML experiments across multiple cloud compute services:Local machine and VM's, Philly, Azure Batch, and Azure Machine Learning (AML)XTlib provides a consistent storage model across services:Workspaces, experiments, jobs, and runsBlob sharesXTLib also offers several experiment-related tools to expand your ML projects:Composable Tensorboard views (live and post-training)Hyperparameter searchingRun and job reportsAd-hoc plottingXTLib provides an experiment store to track, compare, plot, rerun, and share your Machine Learning (ML) experiments.The store consists of user-defined workspaces. Each workspace contains a set of user-run experiments.XTlib supports flexible storage capabilities: local (folder-based) and Azure Storage services (cloud-based).XTLib also uses scalable cloud compute resources, so you can run multiple experiments in parallel and on larger computers, as needed. With this feature, you can scale experiments from your local machine, to multiple VM's under your control, to compute services like Azure Batch and Azure ML.For more information, run: xt --help,or see our documentation.ContributingCheckCONTRIBUTINGpage.Microsoft Open Source Code of ConductThis project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor contactopencode@microsoft.comwith any additional questions or comments.LicenseThis project is licensed under the terms of the MIT license. SeeLICENSE.txtfor additional details.
Package: xtl-read-assistant
xtl-read-assistantx as a third language reading assistant toolPre-installation of libicuFor Linux/OSXE.g.Ubuntu:sudo apt install libicu-devCentos:yum install libicuOSX:brew install icu4cFor WindowsDownload and install the pyicu and pycld2 whl packages for your OS version fromhttps://www.lfd.uci.edu/~gohlke/pythonlibs/#pyicuandhttps://www.lfd.uci.edu/~gohlke/pythonlibs/#pycld2Installationpip install xtl-read-assistantValidate installationpython -c "import xtl_read_assistant; print(xtl_read_assistant.__version__)"
# 0.0.2 or other version infoPatchpyppeteer/connection.pyThe pyppeteer package does not work too well with websockets 7+. Either downgrade the websockets to 6 or manually perform the following patch.Change site-packages\pyppeteer\connection.pyline 44to:# self._url, max_size=None, loop=self._loop) self._url, max_size=None, loop=self._loop, ping_interval=None, ping_timeout=None)UsageRunread-assist.exe; Copy text to the clipboard (ctrl-c); Activate hotkey (ctrl-alt-g)The translated text is stored in the clipboard.default setup: --mother-lang=zh --second-lang=en --third-lang=deread-assistctrl-alt-g: to activate clipboard translationctrl-alt-x: to exitother setup exmaple: --mother-lang=zh --second-lang=en --third-lang=frread-assist --third-lang=fr
Package: xtlsapi
xtlsapiPython library to communicate with xray coreInstall it from PyPIpipinstallxtlsapiUsagefromxtlsapiimportXrayClient,utils,exceptionsxray_client=XrayClient('1.2.3.4',1234)user_id=utils.generate_random_user_id()user_email=utils.generate_random_email()inbound_tag='inbound-tag'# Get statsprint(utils.human_readable_bytes(xray_client.get_client_download_traffic('user-email@mail.com')))print(utils.human_readable_bytes(xray_client.get_client_upload_traffic('user-email@mail.com')))print(utils.human_readable_bytes(xray_client.get_inbound_download_traffic(inbound_tag)))print(utils.human_readable_bytes(xray_client.get_inbound_upload_traffic(inbound_tag)))# Add & Remove clientuser=xray_client.add_client(inbound_tag,user_id,user_email)ifuser:print(user)xray_client.remove_client(inbound_tag,user_email)# restart loggerxray_client.restart_logger()DevelopmentRead theCONTRIBUTING.mdfile.
Package: xt-models
xt-modelsDescriptionThis repo contains common models and utilities for working with ML tasks, developed byXtract AI.More to come.InstallationFrom PyPi:pipinstallxt-modelsFrom source:gitclonehttps://github.com/XtractTech/xt-models.git
pipinstall./xt-modelsUsageGrabbing a segmentation modelfromxt_models.modelsimportModelBuilder,SegmentationModulefromtorchimportnndeep_sup_scale=0.4fc_dim=2048n_class=2net_encoder=ModelBuilder.build_encoder(arch="resnet50dilated",fc_dim=fc_dim,weights="/nasty/scratch/common/smart_objects/model/ade20k/encoder_epoch_20.pth")net_decoder=ModelBuilder.build_decoder(arch="ppm_deepsup",fc_dim=fc_dim,num_class=150,weights="/nasty/scratch/common/smart_objects/model/ade20k/decoder_epoch_20.pth")in_channels=net_decoder.conv_last[-1].in_channelsnet_decoder.conv_last[-1]=nn.Conv2d(in_channels,n_class,kernel_size=(1,1),stride=(1,1))net_decoder.conv_last_deepsup=nn.Conv2d(in_channels,n_class,1,1,0)model=SegmentationModule(net_encoder,net_decoder,deep_sup_scale)Grabbing a detection modelfrom xt_models.models import Model
import torch

# Load a fine-tuned model for inference
model_name = "yolov5x"
model = Model(model_name,nc=15)
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
weights = "/nasty/scratch/common/smart_objects/model/veh_detection/yolov5_ft/best_state_dict.pt"
ckpt = torch.load(weights, map_location=device)
model.load_state_dict(ckpt['model_state_dict'])

# Load pre-trained COCO model for finetuning/inference
model_name = "yolov5x"
model = Model(model_name,nc=80)
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
weights = "/nasty/scratch/common/smart_objects/model/veh_detection/yolov5_pretrain/yolov5x_state_dict.pt"
ckpt = torch.load(weights, map_location=device)
model.load_state_dict(ckpt['model_state_dict'])
# Fine-tuning number of classes
n_class = 15
model.nc = n_classImplementing a new modelIf you are having to always copy and paste the same model code for different projects, simply add the model code to themodelsdirectory, and import it in themodels/__init__.pyfile.Data Sources[descriptions and links to data]Dependencies/Licensing[list of dependencies and their licenses, including data]References[list of references]
Package: xtn
xtn RepositoryOn GithubSample codeimport xtn

# reads the data in the file (without comments) into a dict with key value pairs, the values can be dict, list, str
with open(r'path/to/file.xtn', 'r') as f:
    data = xtn.load(f)

# reads the file including comments into XtnObject
with open(r'path/to/file.xtn', 'r') as f:
    obj = xtn.XtnObject.load(f)

# writes the XtnObject with any changes back to a file with canonical indentation
with open(r'path/to/file.xtn', 'w') as f:
    obj.dump(f)