Saravanan666/pypi-org huggingface dataset:
Package: xlnet-tensorflow
XLNet for TensorFlowThis is a fork of the originalXLNet repositorythat adds package configuration so that it can be easily installed and used.
The purpose is to remove the need of cloning the repository and modifying it
locally which can be quite dirty for common tasks (e.g. training a new classifier).
A lot of code can be shared (e.g.modeling.py,classifier_utils.py) and this
fork is exactly for that.All the credit goes tozihangdai/xlnet.Please refer to the official repository for details on how to use the modules
contained in this package. Useful information can also be found
in theXLNet paper.Release NotesSeptember 5, 2019: Initial version -v1.0.1;September 7, 2019: version -v1.1.October 25, 2019: version -v1.1.1.
Package: xlogger
Something about xloggerI'm a python starter, when I learn the logging section,
I thought that writing the logging format is so 'non-python',
and I have to write the same 'anti-human' codes every where.
Logs are important and should be used more. And in more simple way.So I checked StackOverflow for some inspiration, and I actually learned some.Here is the module I made, in fact, it's the first one I wrote that should be
shared at pypi I thought.Hope you guys enjoy it:)Usagejust copy the code, it have no dependencies. this is the way recommended,
because you can make your own logger customized easily by setting some variables.or if you want to installpip3 install xloggerthen add lines to your code:fromxloggerimportxloggerlogger=xlogger.get_my_logger(__name__)and then just use logger as usual.Main references'How can I color Python logging output?'https://stackoverflow.com/questions/384076/how-can-i-color-python-logging-outputThankSergey Pleshakov - my code base on your code.
Package: xlogs
python-xlogslogging toolkitinstallpip install xlogsUsage1. Use as decoratorfromxlogsimportlogif__name__=='__main__':# config_file: the logging config template, use the default if None@log(log_dir='./logs',config_file=None)defdivision():pass2. Load from ini config filefromxlogsimportLogConfigimportloggingif__name__=='__main__':LogConfig(config_file='/xxx.ini',log_file='/xxx/')logging.info('Default load to root')info=logging.getLogger('root')info.info('write msg to test.log')info=logging.getLogger('test')info.info('write msg to message.log')info=logging.getLogger('info')info.info('write msg to info.log')error=logging.getLogger('error')error.error('write msg to error.log')# reload a new config fileLogConfig(config_file='/yyy.ini',log_file='/yyy/').reset()logging.getLogger().info("info with new logger")3. config with argsfromxlogsimportget_loggerif__name__=='__main__':logger=get_logger(debug=True,logfile='/message.log')logger.info("info oooooo")logger.debug("debug ggggg")logger.error("err rrrr")
Package: xlOil
xlOilxlOil provides framework for interacting with Excel in different programming
languages. It gives a way to write functions in a language and have them
appear in Excel as worksheet functions or macros or have them control GUI elements.
For example, the Python bindings can replace VBA in almost all use cases
and even provide functionality not available from VBA.xlOil is designed to have very low overheads when calling your worksheet
functions.xlOil supports different languages via plugins. The languages currently
supported are:C++PythonSQLIn addition there isxlOil_Utilswhich contains some handy tools which Microsoft
never quite got around to adding.The latest stable documentation is here:https://xloil.readthedocs.io/en/stable.xlOil featuresPythonConcise syntax to declare an Excel functionOptional type checking of function parametersSupports keyword argumentsChoice of globally declared functions or code modules limited to a single workbook
like VBA workbook-level functionsTight integration withnumpy- very low overheads for array functionsUnderstands python tuples, lists, dictionarys andpandasdataframesAsync functionsRTD functions and on-the-fly RTD server creationMacro type functions which write to ranges on the sheetAccess to the Excel Application object and the full Excel object modelDrive Excel through COM automationHook Excel eventsPass any python object back to Excel and back into another functionSimple add-in deploymentTwo-way connection toJupyternotebooks: run worksheet functions inJupyterand query variables
in thejupyterkernelCreate Ribbon toolbars and Custom Task PanesReturnmatplotlibplots and images from worksheet functionsC++Safe and convenient wrappers around most things in the C-APIConcise syntax to declare Excel functions: registration is automaticDeal with Excel variants, Ranges, Arrays and strings in a natural C++ fashionObject cache allows returning opaque objects to Excel and passing them back to other functionsSimplified RTD server creationRTD-based background calculationCreate Ribbon toolbars and Custom Task PanesSQLCreate tables from Excel ranges and arraysQuery and join them with the full sqlite3 SQL syntaxUtils: very fast functions to:Sort on multiple columnsSplit and join stringsMake arrays from blocksSupporting other languagesYou can use xlOil as an end-user of these plugins or you can use it to write
you own language bindings (and ideally add them to the repo).
Package: xloop
IntroductionDocumentationInstallQuick StartLicensingIntroductionThis library is intended to house general for/iterator looping generators/utilities.Only one so far isxloop, seexloop docs.Documentation📄 Detailed Documentation|🐍 PyPiInstall# via pippipinstallxloop# via poetrypoetryaddxloopQuick Startfromxloopimportxloopargs=[None,"hello",2,[3,4],['A',["inner","list"]]]output=list(xloop(*args))assertoutput==["hello",2,3,4,'A',["inner","list"]]LicensingThis library is licensed under the MIT-0 License. See the LICENSE file.
Package: xlpandas
xlPandasRead and write Excel xlsx using pandas/openpyxl without destroying formatting.Sometimes you have a nicely formatted worksheet, but you'd like to work with it
usingpandas, or perhaps you want to write
data to an Excel template.Pandas can read and write Excel files usingxlrd, but treats them like csvs.
xlPandas usesopenpyxlto access data
while preserving template formatting, macros, and other worksheet attributes.Installpip install xlpandasExampleimportxlpandasasxpd# Read excel filedf=xpd.read_file('template.xlsx',skiprows=2)print(df.columns)# Modify dataframedf['new_column']=True# Access openpyxl worksheetsheet=df.to_sheet()sheet.cell(1,1).value='title'# From openpyxl worksheetdf=xpd.xlDataFrame(sheet)# Write filedf.to_file('out.xlsx')
Package: xlparser
xlparser安装使用命令行示例python 调用示例转任何类型的文件保存任何类型的文件Csv 文件处理Zip 文件处理RequiredEnglishxlparser将 excel(xlsx/xls/csv) 转到其他的格式(csv, xlsx, json).Warning: 如果你遇到问题，最好在issue 提交明确的报错信息。安装pip install xlparser如果想过滤字段，结合xcut使用更方便pip install xcut使用$ xlparser -h
xlparser [options] INFILE [OUTFILE]\n
    options:\n
        -h       For help.\n命令行示例将 xlsx 转成 csv$ xlparser source.xlsx new.csv将 csv 转成 xlsx$ xlparser source.csv new.xlsx将 csv 转成 json$ xlparser source.csv new.json将 xlsx 转成 csv(标准输出)$ xlparser source.xlsx | head 

$ xlparser src.xlsx | tee test.csv
name, score
"李雷,韩梅",15
小花,16xcut 命令结合$ xlparser src.xlsx | xcut --from-csv -f name 
name
"李雷,韩梅"
小花

$ xlparser src.xlsx | xcut --from-csv -f score,name
score,name
15,"李雷,韩梅"
16,小花python 调用示例转任何类型的文件parseany type of file to rows:>>> from xlparser import parse, saveCsv
>>> rows = parse('some.xlsx')
>>> list(rows)
[['foo', 'bar'], ['看', '我', '变']]Theparsefunction supports the following file formats: .csv, .xls, .xlsx .保存任何类型的文件Save rows to csv>>> from xlparser import parse, saveCsv
>>> rows = [['foo', 'bar'], ['看', '我', '变']]
>>> saveCsv(rows, 'test.csv')Save rows to xlsx>>> saveXlsx(rows, 'test.xlsx')Csv 文件处理>>> from xlparser import *

>>> rows = [('foo','bar'), ('看','我','变')]
>>> saveCsv(rows, 'test.csv')

>>> list(parseCsv('test.csv'))
[['foo', 'bar'], ['看', '我', '变']]Zip 文件处理>>> from xlparser import loadZip
>>> zf = loadZip('test.xlsx')
>>> print(zf.filelist)
......
>>> zf.extract('xl/media/image1.png', '/tmp')
>>> os.rename('/tmp/'+'xl/media/image1.png', './image1.png')Requiredpython>=3.5xlrd: required by xlsopenpyxl>=2.5.4: required by xlsx
Package: xlr8
XLR8 BOMBER 3.0💣 📱 💀A Superfast SMS & Call bomber for Linux And Termux !DisclaimerThis tool is for educational purposes only !Don't use this to take revengeI will not be responsible for any misuseAboutUnlimited Usage !Cross PlatformSupports newest Android alsoNo balance will be deducted to send SMS/callsWorking ApisNo missing SMS issues, all messages will be sent.Working with all Operators/CarriersTested On :Kali LinuxTermuxUbuntuParrot Sec OSKali nethunterAlpine linuxTermux Issue:Termux App is no longer recieving updates on playstoredue to recently introduced Google Play policyDON'T WORRYWe have a solution for that !You can download the latest termux app and install itFrom hereLinkUsageUpdate the packagesTermuxpkgup-yKali Linux/Parrot OSaptupdate-y&&aptupgrade-yInstall some dependenciesapt-getinstallgitwgetpython3-yClone the repositorygitclonehttps://github.com/anubhavanonymous/XLR8_BOMBERGo to the Xlr8 directorycdXLR8_BOMBERRun the scriptpython3xlr8.pyVersion3.0 CI aplhaFeaturesSms,Call & Whatsapp BombingSend anonymous msgNoteThis bomber only works in India !!LicenceApache 2.0 © Anubhav KashyapScreenshots (Termux)Contact UsIf you have any feedback or queriesmail us at: anubhavkashyap@pm.meTelegram ChannelJoin the Official Telegram channel of XLR8All updates of Xlr8 will be posted here !Change Log0.0.1 (19/04/2020)First Release
Package: xlrd
xlrd is a library for reading data and formatting information from Excel
files in the historical.xlsformat.WarningThis library will no longer read anything other than.xlsfiles. For
alternatives that read newer file formats, please seehttp://www.python-excel.org/.The following are also not supported but will safely and reliably be ignored:Charts, Macros, Pictures, any other embedded object,includingembedded worksheets.VBA modulesFormulas, but results of formula calculations are extracted.CommentsHyperlinksAutofilters, advanced filters, pivot tables, conditional formatting, data validationPassword-protected files are not supported and cannot be read by this library.Quick start:importxlrdbook=xlrd.open_workbook("myfile.xls")print("The number of worksheets is{0}".format(book.nsheets))print("Worksheet name(s):{0}".format(book.sheet_names()))sh=book.sheet_by_index(0)print("{0}{1}{2}".format(sh.name,sh.nrows,sh.ncols))print("Cell D30 is{0}".format(sh.cell_value(rowx=29,colx=3)))forrxinrange(sh.nrows):print(sh.row(rx))From the command line, this will show the first, second and last rows of each sheet in each file:pythonPYDIR/scripts/runxlrd.py3rows*blah*.xls
Package: xlrd2
xlrd2xlrd2 is an effort to extendxlrd project, which is no longer mintained by its developers.
The main goal is to make it suitable for extracting necessary information from malicious xls documents.Xlrd Purpose: Provide a library for developers to use to extract data from Microsoft Excel (tm) spreadsheet files. It is not an end-user tool.Versions of Python supported: 2.7, 3.4+.Installation:Installing using pippip install xlrd2Installing the latest developmentUsing pippip install -U https://github.com/DissectMalware/xlrd2/archive/master.zipOr download the latest versionwget https://github.com/DissectMalware/xlrd2/archive/master.zipExtract the zip file and go to the extracted directorypython setup.py install --userQuick start:importxlrd2book=xlrd2.open_workbook("myfile.xls")print("The number of worksheets is{0}".format(book.nsheets))print("Worksheet name(s):{0}".format(book.sheet_names()))sh=book.sheet_by_index(0)print("{0}{1}{2}".format(sh.name,sh.nrows,sh.ncols))print("Cell D30 is{0}".format(sh.cell_value(rowx=29,colx=3)))forrxinrange(sh.nrows):print(sh.row(rx))Another quick start: This will show the first, second and last rows of each sheet in each file:python PYDIR/scripts/runxlrd2.py 3rows *blah*.xlsXlrd Acknowledgements:This package started life as a translation from C into Python of parts of a utility called "xlreader" developed by David Giffin. "This product includes software developed by David Giffindavid@giffin.org."OpenOffice.org has truly excellent documentation of the Microsoft Excel file formats and Compound Document file format, authored by Daniel Rentz. Seehttp://sc.openoffice.orgU+5F20 U+654F: over a decade of inspiration, support, and interesting decoding opportunities.Ksenia Marasanova: sample Macintosh and non-Latin1 files, alpha testingBackporting to Python 2.1 was partially funded by Journyx - provider of timesheet and project accounting solutions (http://journyx.com/).Provision of formatting information in version 0.6.1 was funded by Simplistix Ltd (http://www.simplistix.co.uk/)
Package: xlrd3
xlrd3A fork of original archivedxlrdproject.
This fork aims to fix bugs that existing inxlrdand improve it features.
As the name of this fork implies, python2 support is dropped.At version 1.0.0, xlrd3 on pair with xlrd version 1.2.0 with following bugs fixed:MemoryError:on_demandwithmmapstill causes somexlsto be read the whole file into memory.on_demandnot supported forxlsxParsing comments failed forxlsxon Windows platform.When to use xlrd3If you just need toreadand deal with bothxlsxandxls, usexlrd3.
Then if you want to export your data to other excel files, useOpenPyXLorxlsxWriter.
If you need toeditxlsx(read and write) and are sure thatxlsnever appear in your workflow, you are advised to useOpenPyXLinstead.Purpose: Provide a library for developers to use to extract data from Microsoft Excel (tm) spreadsheet files. It is not an end-user tool.Original Author: John MachinLicence: BSD-style (see licences.py)Versions of Python supported: 3.6+.Outside scope: xlrd3 will safely and reliably ignore any of these if present in the file:Charts, Macros, Pictures, any other embedded object. WARNING: currently this includes embedded worksheets.VBA modulesFormulas (results of formula calculations are extracted, of course).CommentsHyperlinksAutofilters, advanced filters, pivot tables, conditional formatting, data validationHandling password-protected (encrypted) files.Installation:$pip install xlrd3Quick start:importxlrd3asxlrdbook=xlrd.open_workbook("myfile.xls")print("The number of worksheets is{0}".format(book.nsheets))print("Worksheet name(s):{0}".format(book.sheet_names()))sh=book.sheet_by_index(0)print("{0}{1}{2}".format(sh.name,sh.nrows,sh.ncols))print("Cell D30 is{0}".format(sh.cell_value(rowx=29,colx=3)))forrxinrange(sh.nrows):print(sh.row(rx))Another quick start: This will show the first, second and last rows of each sheet in each file:python PYDIR/scripts/runxlrd.py 3rows *blah*.xlsAcknowledgements:This package started life as a translation from C into Python of parts of a utility called "xlreader" developed by David Giffin. "This product includes software developed by David Giffindavid@giffin.org."OpenOffice.org has truly excellent documentation of the Microsoft Excel file formats and Compound Document file format, authored by Daniel Rentz. Seehttp://sc.openoffice.orgU+5F20 U+654F: over a decade of inspiration, support, and interesting decoding opportunities.Ksenia Marasanova: sample Macintosh and non-Latin1 files, alpha testingBackporting to Python 2.1 was partially funded by Journyx - provider of timesheet and project accounting solutions (http://journyx.com/).Provision of formatting information in version 0.6.1 was funded by Simplistix Ltd (http://www.simplistix.co.uk/)
Package: xlref
About xlrefxlrefis an useful library to capture by a simple reference (e.g.,A1(RD):..:RD) a table with non-empty cells from Excel-sheets when
its exact position is not known beforehand.This code was inspired by thexleashmodule of thepandalonelibrary. The reason of
developing a similar tool was to have a smaller library to install and
improve the performances of reading.xlsxfiles.InstallationTo install it use (with root privileges):$pipinstallxlrefOr download the last git version and use (with root privileges):$pythonsetup.pyinstallTutorialA typical example iscapturinga table with a “header” row and
convert into a dictionary. The code below shows how to do it:>>> import xlref as xl
>>> _ref = 'excel.xlsx#ref!A1(RD):RD[%s]'
>>> ref = xl.Ref(_ref % '"dict"')
>>> ref.range  # Captured range.
B2:C28
>>> values = ref.values; values  # Captured values.
{...}
>>> values['st-cell-move']
'#D5(RU):H1(DL)'You can notice from the code above that all the values of the
dictionary are references. To parse it recursively, there are two
options:add the “recursive” filter before the “dict”:>>> values = xl.Ref(_ref % '"recursive", "dict"').values
>>> values['st-cell-move'].tolist()
[[1.0, 2.0, 3.0],
 [4.0, 5.0, 6.0],
 [7.0, 8.0, 9.0]]apply a filter onto dictionary’ values using the extra
functionality of the “dict” filter:>>> values = xl.Ref(_ref % '{"fun": "dict", "value":"ref"}').values
>>> values['st-cell-move'].tolist()
[[1.0, 2.0, 3.0],
 [4.0, 5.0, 6.0],
 [7.0, 8.0, 9.0]]You have also the possibility to define and use your custom filters as
follows:>>> import numpy as np
>>> xl.FILTERS['my-filter'] = lambda parent, x: np.sum(x)
>>> xl.Ref('#D5(RU):H1(DL)["my-filter"]', ref).values
45.0An alternative way is to use directly the methods of the filtered
results as follows:>>> xl.Ref('#D5(RU):H1(DL)["sum"]', ref).values
45.0
Package: xl-reports
XL ReportsGenerate Excel reports!Create an Excel template fileDefine a report configurationFetch your dataGenerate reportReport Configuration SchemaReport configuration is defined as array/list of objects/dicts."cell":  Worksheet cell coordinates to insert data, example:"B2""range":  Worksheet coordinate range to insert data. Range start coordinate is required and end coordinate is optional. examples:"B2:"or"B2:C5""data_key":  Key to use when fetching values from the data dictionary to insert into the worksheet. example:data["report_date"]"sheet":  Worksheet name.Example configuration[
    {
        "cell": "B2",
        "data_key": "account",
        "sheet": "my_sheet"
    },
    {
        "cell": "B4",
        "data_key": "report_date",
        "sheet": "my_sheet"
    },
    {
        "range": "A8",
        "data_key": "report_data",
        "sheet": "my_sheet"
    }
]Example data[{
    "account": "Engineering",
    "report_date": str(date.today()),
    "report_data": [
        [23.43, 11.96, 9.66],
        [6.99, 65.87, 45.33],
    ]
}]
Package: xls2db
xls2db is a python program that takes an excel spreadsheet following a certain
schema into an sqlite database that can be opened using python’s sqlite3 module.
It can also be used as a module.Why??Because fuck you, that’s why.But seriously: I was getting sick of doing data entry for this toy project of
mine using cursor.execute()’s, so I figured I’d try entering the data into an
excel spreadsheet, converting it into the db, and then manipulating it from
there. Crazy, I know.Usage:As a script:xls2db infile.xls outfile.dbAs a module:from xls2db import xls2db
xls2db("infile.xls", "outfile.db")For more, visit <https://github.com/jesusabdullah/xls2db> .
Package: xls2moodle
xls2moodleScript to convert multiple choice questions from xls to moodle's xml format. The xml format
can then be used to import the questions into moodle quizes. Please note, that this repository
and the code was intended to be used for german tables / quizes. Adaptions are possible, but
some columns (in the input) are hard-coded at the moment.To install the package and make use of the tkinter GUI (thanks @euvbonk), you can usepip install xls2moodleinputThe script requires two arguments as commandline options (see MoodleXML usage):course namelocation of tabular excel file with questionsoutputxml format, ready for import in moodlequestion formatPlease refer to the template_advanced.xlsx to get an ideao on the file format.
Mandatory columns:Aussage1 - possible answer 1Aussage2 - possible answer 2Aussage3 - possible answer 3Aussage4 - possible answer 4WAHR - contains index of correct answer(s), 1-basedFALSCH - contains index of wrong answer(s), 1-basedThemenblock - contains a topic name (this should be the same for similar questions)Hauptfrage - Question textOptional columns:Anwendung - boolean, filter to include (1) or exclude (0) questionsFurther columns are ignored.templatesThe script reads templates (xml_templates-folder) that were previously exported from moodle.
If the format changes in the future, this process needs to be repeated. In the meantime, do
not touch any of the xml templates.known issueslatex equation code supported (?)reading of data with special encoding (utf-8) currently not possible with the latest pandas versionContributorsBenjamin FurtwänglerSven Gieseeuvbonk
Package: xlsb2xlsx
xlsb2xlsxPurposeAn alternative tosofficethat specifically converts.xlsbfiles to.xlsxfiles.How to usexlsb2xlsxTo convert all.xlsbfiles in a directory, run:python -m xlsb2xlsx /filepathTo convert all.xlsbfiles in a directoryrecursively, run:python -m xlsb2xlsx /filepath --recursiveORpython -m xlsb2xlsx /filepath -rThe--recursiveflag specifies whether files in nested directories are also converted.Fine PrintThis wrapper is built on top of theAspose.Cells projectwhich is proprietary.As a result of being built on top of Aspose.Cells,each converted.xlsxfile will contain an additional sheet namedEvaluation Warningat the end of the.xlsxfile after the conversion is complete. This additional sheet reminds the user that they are using a free version of Aspose's software which should be used for "Evaluation Only". The copyrights of Aspose.Cells belong to Apose Pty Ltd and this wrapper exists only for additional ease of use.
Package: xlsclone
baangt-CloneXLSThis package was mainly made to use inbaangt.It's functionality is to Clone aexcel file(xls/xlsx)and a new sheet is made inside cloned file which is used to
store the change logs.This package contains two main classes. First isCloneXls& second isChangeLog.CloneXlsupdate_or_make_cloneis the main method of this class. On the first run it will create a clone file and if the file
already exist it will callChangeLogclass.ChangeLogThis class is used to check the changes between source and cloned file and update those changes inside cloned file.
Their are few helpful functionalities like ignore_headers & ignore_sheets these both parameters takes a list.
Headers and sheets present in this lists will be ignored for change log and will not be updated from source.xlsxChangeLogis the main method of this class which will trigger all the other methods like checking for changes,
updating change log sheet, updating whole clone file from source(except ignored data). AIt will write all the
changes inChange Logsworksheet. This data will containDate & time, "Sheet Name", "Header Name", "Row Number", "Old Value", "New Value".