Saravanan666/pypi-org huggingface dataset:
Package: xchatbot
The Xtensible XMPP Chat BotXChatBotis a xmpp bot library written in python using thenbxmpp library from Gajimhttps://xchatbot.readthedocs.io/requirementspython 3pygobjectnbxmppoptionallypipenvinstallpip install xchatbotgitgit clone https://git.sr.ht/~fabrixxm/xchatbotinstall required packages:with pipenv$ pipenv --site-packages --python 3
$ pipenv install
$ pipenv run ./xchatbot.pyon osxyou need first to install python3 with brew:$ brew install python3 pipenv pygobject3 libsoupon Arch# pacman -S python-gobject python-nbxmppon Debian# apt install python3-gi python3-nbxmpp
Package: xchem-chimp
CHiMP (Crystal Hits in My Plate) is a deep learning system to help researchers work with micrographs of protein crystallisation experiments. XChem CHiMP consists of one component:1.CHiMP Detector. This uses an object detection network to find the position of any crystals and drops in the image and uses this information to
calculate a coordinate for dispensing compound using the Echo.Installationpip install chimpflow

chimpflow --versionModel file for xchem-chimpThe model file is saved in:https://gitlab.diamond.ac.uk/xchem/xchem-chimp-modelsThis file is too large for github.For GitHub pytest to find the file in its CI/CD Actions, this file has been uploaded to zenodo:https://zenodo.org/record/7810708/2022-12-07_CHiMP_Mask_R_CNN_XChem_50eph_VMXi_finetune_DICT_NZ.pytorchThe tests/conftest.py fetches this file automatically.Runningrm -rf detector_output
python -m detect_folder_chimp \
    --echo --preview \
    --num_classes=3 \
    --MODEL_PATH=src/xchem_chimp/detector/model/2022-12-07_CHiMP_Mask_R_CNN_XChem_50eph_VMXi_finetune_DICT_NZ.pytorch \
    --IMAGE_PATH=tests/SubwellImages/97wo_2021-09-14_RI1000-0276-3dropyou can expect something like:20-Mar-23 08:09:21 - INFO - Loading libraries...
20-Mar-23 08:09:21 - DEBUG - Loading model from src/xchem_chimp/detector/model/2022-12-07_CHiMP_Mask_R_CNN_XChem_50eph_VMXi_finetune_DICT_NZ.pytorch
20-Mar-23 08:09:21 - INFO - Making directory for detector output: /27/xchem-chimp/detector_output
20-Mar-23 08:09:21 - DEBUG - extracting coordinates...
20-Mar-23 08:09:25 - DEBUG - create_detector_output_dict: 97wo_01A_1.jpg - Number of objects found: 33
20-Mar-23 08:09:25 - DEBUG - 1 drops, 32 crystals over prob threshold
20-Mar-23 08:09:26 - DEBUG - Extracting Echo coordinate from distance transform.
20-Mar-23 08:09:27 - DEBUG - Calculating well centroids...
20-Mar-23 08:09:27 - DEBUG - Loading background images
20-Mar-23 08:09:27 - DEBUG - Well centroid found at (504, 600)Development questionsIs the folder src/xchem_chimp/detector/background_images needed in the distribution?Where best to put model_file for unit testing?Is torchvision a necessary dependency for runtime?How are the model files built?Why are there so many mypy problems in coord_generator.py and detector_utils.py?How significant is this: DeprecationWarning: Please use gaussian_filter from the scipy.ndimage namespace, the scipy.ndimage.filters namespace is deprecated.Do we need to keep anything in the zocalo directory?Is there some example image where target_position is properly calculated?DocumentationSeehttps://www.cs.diamond.ac.uk/chimpflowfor more detailed documentation.Building and viewing the documents locally:git clone git+https://gitlab.diamond.ac.uk/scisoft/bxflow/chimpflow.git
cd chimpflow
virtualenv /scratch/$USER/venv/chimpflow
source /scratch/$USER/venv/chimpflow/bin/activate
pip install -e .[dev]
make -f .chimpflow/Makefile validate_docs
browse to file:///scratch/$USER/venvs/chimpflow/build/html/index.htmlTopics for further documentation:TODO list of improvementschange log
Package: xchem-db
=====XChemDB=====This is a simple Django app to get a RESTFul API of XChem data.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "xchem_db" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'xchem_db',]2. Run `python manage.py migrate` to create the xchem_db models.
Package: xchg
Exchange SimulatorSimulator of a currency exchange. Key features:Very minimalistic (300 lines in code), written in a functional style;You can download a sample data from poloniex.com or provide your data in .csv files;You can set an initial balance, use basic functions like buy, sell, go to the next time step;More advanced features like a total capital calculation, and make portfolio, more about that at the link below;Trading fees and minimum order amounts are supported.Full API documentation is here:https://sergei-bondarenko.github.io/xchg/Quick startThe package is available onpypi.org, so you can install it via pip:pipinstallxchgThen we need a market data. For tutorial purposes you can download it with this command which will be available after package installation:download_candlesIt will download 50 candles for ETC, ETH, LTC and XMR cryptocurrencies frompoloniex.comexchange and put it insample_data/directory in the current path. Or you can downloadsample_data/directory from this repository.Later you can view these .csv files and use your own data in the same format. You can have a different number of currecies, and different set of columns. The only mandatory column is "close" price, as it will used for trading. Just ensure that you have the same time range for different currencies and have no gaps in data.Prices in .csv files are expressed in a base currency, which will be calledcash(if you are curious, in the sample data cash currency is BTC).Now let's trade!fromxchgimportXchg# Set an initial balance. Let's set that we have only cash currency at the# start.balance={'cash':100,'ETC':0,'ETH':0,'LTC':0,'XMR':0}# Set a trading fee which will be paid for each buy or sell trade (in this# example it's 1%). You can set 0 if you don't want any fee to be paid.fee=0.01# Set a minimum order size expressed in a cash currency. You can not place# orders less than that value. You can use also set 0 here if you don't# want to limit a minimum order size.min_order_size=0.001# Create an exchange.ex=Xchg(fee,min_order_size,data_path='sample_data/',balance=balance)# Let's buy some coins.ex=ex.buy('ETC',7500)ex=ex.buy('LTC',15000)print(ex.balance)# Output: {'cash': 2.2024749999999926, 'ETC': 7425.0, 'ETH': 0.0, 'LTC': 14850.0, 'XMR': 0.0}# All done, now we want to wait for 30 time periods.for_inrange(30):ex=ex.next_step()# Now we want to sell.ex=ex.sell('ETC',7425)ex=ex.sell('LTC',14850)print(ex.balance)# Output: {'cash': 101.1232084225, 'ETC': 0.0, 'ETH': 0.0, 'LTC': 0.0, 'XMR': 0.0}# We made more than 1 BTC profit, yay!For developersInstall testing modules:pipinstallpytestpytest-flake8pytest-covUse the following command to run tests locally:pytest--flake8--cov=xchg--cov-reportterm-missing-vvvAnd do not forget to increase a version inxchg/__init__.pybefore commiting.
Package: xchtools
ConfigIn your own project, there should be asettings.tomland a.envfile.settings.tomlstores the common config.To use connections module,[default.db]is a must..envstores secret things like passwords.Usageconnections modulemysqldb connection example toml:[default.db]host="replace with your host"port=3306user="root"password="@format {env[MYSQLDB_PASSWORD]}"Usage in your code:fromxchtoolsimportXCHConnectionsxc=XCHConnections(os.path.dirname(os.path.abspath(__file__)))config=xc.settingsprint(config.db)xc.sql2df("show databases")For developerBuild and ReleaseConfig pypi API tokenpoetry config pypi-token.pypi <token>poetry buildpoetry publish
Package: xc_ip_info
===================ip_info：获取ip信息===================描述：当前最右会对用户ip进行地域识别，在敏感时期可能会对某些特定的地区、省份、国家的ip做特殊的标记处理。说明：当前此项目用到了ipip上的免费版ip鉴定本地包，对于无法鉴定的ip再用淘宝ip免费ip鉴定接口加以辅助。使用：from xc_ip_info.ip_info import IPSearcherIPSearcher.search('123.125.71.38')IPSearcher.validate('61.128.101.255')即可，具体case可以见test下测试用例。安装：用的是最内内部的私有pip服务器。因此需要在内网环境下安装。第一次：sudo pip install xc_ip_info -i 'http://172.16.111.203:8081' --trusted-host '172.16.111.203'之后：sudo pip install --upgrade xc_ip_info -i 'http://172.16.111.203:8081' --trusted-host '172.16.111.203'回滚到某个版本：sudo pip install xc_ip_info==0.5 -i 'http://172.16.0.173:8080' --trusted-host '172.16.0.173'查看所有版本信息的web前端访问：http://172.16.0.173:8080上传：1.首先需要获取你的私有pypi账户和密码，可以找op权洲。2.修改你的~/.pypirc，最简单的包括如下几行：[distutils]index-servers =local[local]repository: http://172.16.0.173:8080username: yournamepassword: yourpassword3.构建：python setup.py sdist build4.上传：python setup.py sdist upload -r local
Package: xclass-sdk
xclass-sdk DocumentationInstallationTo install thexclass-sdk, use the following pip command:pipinstallxclass-sdkUsage# Chat bot appfromxclass_sdk.chat_bot_appimportChatBotApp# General appfromxclass_sdk.general_appimportGeneralApp# Math appfromxclass_sdk.math_appimportMathApp# Profile appfromxclass_sdk.profileimportProfileAppExamplesPlease see the test insrc/*.py
Package: xclean
xcleanFile de-duplication utilityusage: xclean [-h] [-m MAIN] [-t TARGET] [-a ARCHIVE_TO] [-e [EXTENSIONS ...]] [--remove] [--trash] [--clean]

options:
  -h, --help            show this help message and exit
  -m MAIN, --main MAIN
                        Directory where master files reside
  -t TARGET, --target TARGET
                        Directory where duplicate files may reside
  -a ARCHIVE_TO, --archive-to ARCHIVE_TO
                        Archive duplicates to folder
  -e [EXTENSIONS ...], --extensions [EXTENSIONS ...]
                        Extensions
  --remove              Remove duplicate files
  --trash               Trash duplicate files
  --clean               Clean database
  --xmp                 Include XMP files as well
Package: xclone
Inference of Clonal Copy Number Variation in Single CellsXClone is an algorithm to infer allele- and haplotype-specific copy numbers
in individual cells from low-coverage and sparse single-cell RNA sequencing data
(e.g., those generated by 10x Genomics, Smart-seq, etc.).
The full description of the algorithm and its application on published cancer datasets are described in full-textXClone: detection of allele-specific subclonal copy number variations from single-cell transcriptomic data.The demo of XClone and results on the 3 processed cancer datasets are available atxclone-data.Please frequently read thetutorials and release historyand keep software up to date since XClone is being updated
and improved frequently at this stage.InstallationMain ModuleXClone requires Python 3.7 or later (recommend 3.7).
We recommend to use Anaconda environment for version control and to avoid potential conflicts:conda create -n xclone python=3.7
conda activate xcloneXClone package can be conveniently installed via PyPI:pip install xcloneor directly from GitHub repository (for development version):pip install git+https://github.com/single-cell-genetics/XClonePreprocessing via xcltkxcltk is a toolkit for XClone preprocessing.
xcltk is avaliable through pypi. To install, type the following command line, and add -U for upgrading:pip install -U xcltkAlternatively, you can install from this GitHub repository for latest (often development) version by following command line:pip install -U git+https://github.com/hxj5/xcltk
Package: xcltk
xcltkxcltk is a toolkit for XClone (warning: under development, not stable)All release notes are available atdoc/release.rstInstallationxcltk is avaliable throughpypi. To install, type the following command
line, and add-Ufor upgrading:pipinstall-UxcltkAlternatively, you can install from this GitHub repository for latest (often
development) version by following command linepipinstall-Ugit+https://github.com/hxj5/xcltkIn either case, if you don't have write permission for your current Python environment,
we suggest creating a separatecondaenvironment or add --user for your
current one.ManualYou can check the full parameters withxcltk -h.Program: xcltk (Toolkit for XClone)
Version: 0.1.16

Usage:   xcltk <command> [options]

Commands:
  -- BAF calculation
     fixref           Fix REF, ALT and GT.
     rpc              Reference phasing correction.
     pileup           Pileup, support unique counting.

  -- RDR calculation
     basefc           Basic feature counting.

  -- Region operations
     convert          Convert different region file formats.

  -- Others
     -h, --help       Print this message and exit.
     -V, --version    Print version and exit.
Package: xcmd
Table of Contentstl;drInstallingUsageDependenciestl;drXCmd provides convenient parameters parsing on top of cmd.CmdInstallingFrom PyPI:$ pip install xcmdOr running from the source:$ cd xcmd
$ export FROM_SOURCE=1; bin/xcmd-shellUsage(more to come: porting zk-shell over to xcmd)DependenciesPython 2.7, 3.3, 3.4, 3.5 or 3.6Testing and DevelopmentPlease seeCONTRIBUTING.rst.
Package: xcmocean
xcmoceanxarray accessor for automating choosing colormaps, aimed at geosciences.Also optional dependence oncf-xarray.Project based on thecookiecutter science project template.Installation:You can pip install from PyPI:pip install xcmoceanor install from conda-forge withconda install -c conda-forge xcmoceanExample usage:import xcmocean

ds.salt.cmo.contourf(x='lon', y='lat')which would make acontourfplot of theds.saltdata using thecmoceanhalinecolormap. More examples in the docs.Dev installation for local workClone the repo:$ git clone https://github.com/pangeo-data/xcmocean.gitIn thexcmoceandirectory, install conda environment:$ conda env create -f environment.ymlTo also develop this package, install additional packages with:$ conda install --file requirements-dev.txtTo then check code before committing and pushing it to github, locally run$ pre-commit run --all-files
Package: xcm-parser
Executable Class Model ParserParses an *.xcm file (Executable Class Model) to yield an abstract syntax tree using python named tuplesWhy you need thisYou need to process an *.xcm file in preparation for populating a database or some other purposeInstallationCreate or use a python 3.11+ environment. Then% pip install xcm-parserAt this point you can invoke the parser via the command line or from your python script.From your python scriptYou need this import statement at a minimum:from xcm-parser.parser import ClassModelParserYou can then specify a path as shown:result = ClassModelParser.parse_file(file_input=path_to_file, debug=False)In either case,resultwill be a list of parsed class model elements. You may find the header of thevisitor.pyfile helpful in interpreting these results.From the command lineThis is not the intended usage scenario, but may be helpful for testing or exploration. Since the parser
may generate some diagnostic info you may want to create a fresh working directory and cd into it
first. From there...% xcm elevator.xcmThe .xcm extension is not necessary, but the file must contain xcm text. See this repository's wiki for
more about the xcm language. The grammar is defined in theclass_model.pegfile. (if the link breaks after I do some update to the code,
just browse through the code looking for the class_model.peg file, and let me know so I can fix it)You can also specify a debug option like this:% xcm elevator.xcm -DThis will create a scrall-diagnostics folder in your current working directory and deposite a coupel of PDFs defining
the parse of both the class model grammar:class_model_tree.pdfand your supplied text:class_model.pdf.You should also see a file namedxcm-parser.login a diagnostics directory within your working directory
Package: xcodelocalize
XCodeLocalizeRequirmentsPython3.9+InstallationUsing pip:pip3 install xcodelocalizeАlso available installations via poetry or .whl file from github releasesUsagePrepare your xcode projectCreate Localizable.strings file and fill it with strings you want to localize./* optional description */
"[key]" = "[string]";

/* Example: */
"welcome text" = "Welcome to XCodelocalize";Go to the project settings, add the desired languages.Create localization (.strings) files for all selected languages.There is a nice tutorial about ios app localization by kodeco (the new raywenderlich.com)Localizecdto project root folder and runxcodelocalize [OPTIONS]orpython3 -m xcodelocalize [OPTIONS]Options--base-language: code of the language from which all strings will be translated.[default: 'en']--override / --no-override: a boolean value that indicates whether strings that already exist in the file will be translated. Retranslate ifoverride, skip ifno-override.[default: no-override]--format-base / --no-format-base: sort base file strings by key.[default: no-format-base]--file: Names of the strings files to be translated. Multiple files can be specified. If not specified, all files will be translated.[default: None]Example:xcodelocalize --file InfoPlist
xcodelocalize --file InfoPlist --file MainStoryboard --file Localizable--key: Keys of the strings to be translated. Multiple keys can be specified. If not specified, all keys will be translated.[default: None]--language: Language codes of the strings files to be translated. Multiple language codes can be specified. If not specified, all files will be translated.[default: None]--log-level: One from [progress|errors|group|string].[default: group]--help: Show infoFeatures:The tool looks for .strings files in the current directory recursively, grouping and translating fully automatically. You can even run it in the root directory and localize all your projects at once.Regular .strings, Info.plist, storyboards and intentdefinition files are supported.Formated strings with %@ are supported.Multiline strings are supported.Comments are supported and will be copied to all files. Comments mustnot contain substrings in localizable strings format with comment, such as/*[comment]*/ "[key]" = "[value]";.AutomationYou can go toTarget -> Build Phases -> New Run Script Phasein your xcode project and pastexcodelocalizethere. It will localize necessary strings during build and your localization files will always be up to date.BonusNice swift extension that allows you to do this"welcome text".localized// will return "Welcome to XCodelocalize"extensionString{varlocalized:String{NSLocalizedString(self,tableName:nil,bundle:.main,value:self,comment:"")}funclocalized(_arguments:String...)->String{String(format:self.localized,locale:Locale.current,arguments:arguments)}}
Package: xcode-toolbox
xcode-toolboxA CLI tool which aims to provide a convenient operation toolbox on XCode project. It's faster and cleaner thanxed. You can use it to:(1) Open XCode project or workspace. 
(2) Remove project's derived data, or just the Build or Index folder.
(3) [WIP] Force kill XCode process. 
(4) [WIP] Generate Objective-C function signatures.The argumentpathis a path to the directory containing at least 1.xcodeprojor.xcworkspacefile, default
to the current directory..xcworkspacehas higher priority than.xcodeproj.Installationpip3installxcode-toolboxRequirementsPython 3.6+requestsclickUsageUsage: xc [OPTIONS] [PATH]

  A CLI tool which aims to provide a convenient operation toolbox on XCode
  project. It's faster and cleaner than `xed`. You can use it to: (1) open
  XCode project or workspace. (2) remove project's derived data. (3) [WIP]
  force kill XCode process. (4) [WIP] generate Objective-C function
  signatures.

  The argument `path` is a path to the directory containing at least 1
  `.xcodeproj` or `.xcworkspace` file, default to the current directory.
  `.xcworkspace` has higher priority than `.xcodeproj`.

  Contribute: https://github.com/zlrs/xcode-opener

Options:
  --rm-all    Remove the project's derived data in
              ~/Library/Developer/Xcode/DerivedData.

  --rm-build  Similar to --rm-all, but only remove the `Build` subdirectory.
  --rm-index  Similar to --rm-all, but only remove the `Index` subdirectory.
  --help      Show this message and exit.Exampleopen a XCode project or workspacespecify folder explicitlygitclonegit@github.com:SDWebImage/SDWebImage.git~/GitHub
xc~/GitHub/SDWebImage/Examplesopen project/workspace of current folder without parametersgitclonegit@github.com:SDWebImage/SDWebImage.gitcdSDWebImage/Examples
xcclear project derived folder# remove project's index from derived data
xc <Path> --rm-index

# remove project's build from derived data
xc <Path> --rm-build

#remove project's all derived data
xc <Path> --rm-allTodo featurestoolbox subcommandskillsubcommand. To kill all running XCode processes, equivalent to the following shell command.kill$(psaux|grep'Xcode'|awk'{print $2}')findsubcommand. Find a source file/project file(s) under the given directory tree.generate Objective-C method signature.clear XCode project index folderclear XCode project derivedData folderContributionComments, pull requests or other kind of contributions are welcome!Also if you have any requirements or you encounter any bugs, feel free to open an issue or create a pull request!LICENSEMIT @ zlrs
Package: xcoll
xcollCollimation in xtrack simulationsDescriptionGetting StartedDependenciespython >= 3.8numpypandasxsuite (in particular xobjects, xdeps, xtrack, xpart)Installingxcollis packaged usingpoetry, and can be easily installed withpip:pipinstallxcollFor a local installation, clone and install in editable mode (need to havepip>22):gitclonegit@github.com:xsuite/xcoll.git
pipinstall-excollExampleFeaturesAuthorsFrederik Van der Veken(frederik@cern.ch)Despina DemetriadouAndrey AbramovGiovanni IadarolaVersion History0.1Initial ReleaseLicenseThis project isApache 2.0 licensed.
Package: xcollection
xcollectionCIDocsPackageLicensexcollection extendsxarray's data modelto be able to handle a dictionary of xarray Datasets.Seedocumentationfor more information.Installationxcollection can be installed from PyPI with pip:python-mpipinstallxcollectionIt is also available fromconda-forgefor conda installations:condainstall-cconda-forgexcollection
Package: xcolor
xcolor支持UNIX及类UNIX操作系统
支持Python版本为Python3.0+颜色值:每种颜色有两种相近的颜色,以1和2区分.
"Black1","Red1","Green1","Yellow1","Blue1","Magenta1","Cyan1","White1"
"Black2","Red2","Green2","Yellow2","Blue2","Magenta2","Cyan2","White2"字体风格:"Bold":高亮加粗"Italic":斜体"Underline":下划线"Flash":闪烁"Throughline":删除线内置对象:字体风格需要终端支持常规颜色风格black1,red1,green1,yellow1,blue1,magenta1,cyan1,white1black2,red2,green2,yellow2,blue2,magenta2,cyan2,white2斜体风格iblack1,ired1,igreen1,iyellow1,iblue1,imagenta1,icyan1,iwhite1iblack2,ired2,igreen2,iyellow2,iblue2,imagenta2,icyan2,iwhite2下划线风格ublack1,ured1,ugreen1,uyellow1,ublue1,umagenta1,ucyan1,uwhite1ublack2,ured2,ugreen2,uyellow2,ublue2,umagenta2,ucyan2,uwhite2删除线风格tblack1,tred1,tgreen1,tyellow1,tblue1,tmagenta1,tcyan1,twhite1tblack2,tred2,tgreen2,tyellow2,tblue2,tmagenta2,tcyan2,twhite2闪烁风格fblack1,fred1,fgreen1,fyellow1,fblue1,fmagenta1,fcyan1,fwhite1fblack2,fred2,fgreen2,fyellow2,fblue2,fmagenta2,fcyan2,fwhite2粗体风格bblack,bred,bgreen,byellow,bblue,bmagenta1,bcyan,bwhiteeg.if __name__ == "__main__":
    import logging
    import xcolor
    # 测试颜色
    xcolor.test_color()
    # 测试内置颜色对象
    xcolor.test_style()
    # 蓝色字体
    # print方法与内建print方法参数相同
    xcolor.blue1.print("hello world!")

    # 用Color对象作为装饰器,改变被装饰函数内的标准输出
    @xcolor.yellow1
    def test():
        print("*"*60)

    test()

    std_handler = logging.StreamHandler()
    std_handler.setLevel(logging.DEBUG)
    logger = logging.getLogger("test")
    logger.setLevel(logging.DEBUG)
    logger.addHandler(logging.StreamHandler())
    logger.error=xcolor.red1(logger.error)
    logger.warning=xcolor.bred(logger.warning)
    logger.info = xcolor.green2(logger.info)
    logger.debug = xcolor.iblue2(logger.debug)
    logger.error("error")
    logger.warning("warn")
    logger.info("info")
    logger.debug("debug")
    #设置终端颜色
    xcolor.byellow.setenv()
    print("abc")
    #清除终端颜色
    xcolor.clear()
    print("efg")