Saravanan666/pypi-org huggingface dataset:
Package: python-docx-ml
Copyright (c) 2013 Steve Canny,https://github.com/scannyPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.Description: python-docx-ml
Keywords: docx office openxml word
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Office/Business :: Office Suites
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/x-rst
Package: python-docx-ml6
python-docxThis package is a fork from the originalpython-docx. It includes feature requests that are yet to be merged in the original one.python-docxis a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.Installationpip install python-docx-ml6Example>>>fromdocximportDocument>>>document=Document()>>>document.add_paragraph("It was a dark and stormy night.")<docx.text.paragraph.Paragraphobjectat0x10f19e760>>>>document.save("dark-and-stormy.docx")>>>document=Document("dark-and-stormy.docx")>>>document.paragraphs[0].text'It was a dark and stormy night.'More information is available in thepython-docx documentation
Package: python-docx-ng
python-docx-ngpython-docx-ngis a Python library for creating and updating Microsoft Word (.docx) files.
It was originally designed and developed byscannyaspython-docx.
As he is not actively developing his repo and there are soo many useful pull requests, bringing together a more powerful tool.
This repo should merge a lot of those things and create a more powerful version, hopefully bearing the original structure of scanny in mind.A new documentation section will be build up soon based on Markdown in thedocssection.
Examples can be found here:examplesOlder information is available in thepython-docx Documentation.Repo:https://github.com/toxicphreAK/python-docx-ng/blob/master/Release:https://github.com/toxicphreAK/python-docx-ng/releasesPyPi:https://pypi.org/project/python-docx-ng/Installationpip install python-docx-ngHint: The library is calleddocxin python scripts, so use imports likeimport docx.FeaturesExtended Properties supportpython-docx #1206Word 16 (Office 2019) Template (54a1269)Faster & improved tables (#1)SVG support (#4)EMF support (85a30f1)WMF support (9288ec9)Font scaling (#6)Outline level (#7) - shows outline in navigation (e.g. Word or PDF application - not affecting the document itself)RGB color font highlighting (#14)Hyperlink text (#16).docmfile support (#19) - enables marco documentsForm fields & AltChunk support (#20)Custom namespaces (#21)Comment support (85a30f1)Footnote support (85a30f1)Shading support (9288ec9)Performance improvementsParagraph.text ([#3}(https://github.com/toxicphreAK/python-docx-ng/pull/3)Cache for table cells (#8)FixesFix table issuepython-docx#1196- as table columns were not assigned correctly, seepython-docx#1193Fix table merging recusionhttps://github.com/python-openxml/python-docx/issues/1208- replace recursion with for loopadd_picture (#10) - fix next_id to support multiple picturesHeading 1key error due to style capitalization (e.g. in LibreOffice) (#12)Fix XPath for sectPr in document (#15)Reproducible documents (#17) - same binary output with same dataAttValue too long in etree xml parser (#24)RoadmapDocument all functionallities building a new sample document withall(most) features includedGo throughallIssues of python-docx repoOpen & To Be Implemented:media file path issue -https://github.com/python-openxml/python-docx/pull/1205automatically update table of contents -https://github.com/python-openxml/python-docx/issues/1207specify table location (not at end of document) -https://github.com/python-openxml/python-docx/issues/1204read information from activex elements -https://github.com/python-openxml/python-docx/issues/1197begin new list numbering -https://github.com/python-openxml/python-docx/issues/1194Search on stackoverflow and document solutionsRemove code references to original repo of python-docxSetup new docs (markdown based)Add missing tests
Package: python-docx-oss
As a Brazilian jiu-jitsu player, OSS means anything and everything. It’s a term used in BJJ that is a way of greeting and demonstrating respect to others.python-docx-ossis a Python library for CRUD Microsoft Word (.docx) files. It fork frompython-docx.FAQQ: What's New?A:HISTORYMore information is available in thepython-docx-oss documentationRelease History0.0.7 (2022-10-29)add emf image file support. #240.0.6 (2022-10-21)change default custom xml file name to item1. #230.0.5 (2022-8-08)minor refactor custom-properties.add add_float_picture in Document. #210.0.4 (2022-7-21)public python-docx-oss docs @ readthedocs.add delete_item in CustomXmlPart. #170.0.3 (2022-7-01)Change method text to texts in CT_R. #14Add external target_ref setter. #15Blacken all Python files.0.0.2 (2022-06-24)Add custom xml support. #10Add Parteq.Add Part element setter.Add Relationships parts_with_reltype.0.0.1 (2022-06-16)Only support Python3.8, 3.9 and 3.10.Add custom properties support. #2Add drop_rels in Package. #5Add drop_rels in Part. #5Add default NumberingPart. #4Fix Python3.8+dictTypeError. #6Add some typehint.
Package: python-docx-template
This is just a demonstration vehicle used to take you through the process
– start to finish – of creating a Python project that can be:Uploaded toDistributed fromandDocumented onthe Python Package Index (aka pypi or the cheeseshop) athttp://pypi.python.org/pypi.
This project uses setuptools, sphinx, and the Sphinx-PyPI-upload
(http://pypi.python.org/pypi/Sphinx-PyPI-upload/0.2.1).This demonstration is not meant to be complete nor authoritative. It’s just a
recording of the steps I took to get some projects onto pypi and
hopefully it might save someone some time from googling around.  To be sure,
this is simply justoneway to make a project, document it, and get it
on pypi.NOTE: This was originally given as a talk to the Minnesota Python Users Grouphttp://groups.google.com/group/pymntos/and was developed for a
spoken presentation format.
Package: python-docx-whtsky
python-docx-whtskypython-docx-whtskyis a Python library for creating and updating Microsoft Word
(.docx) files.More information is available in thepython-docx documentationRelease History0.8.10.3 (2019-11-11)TableCell'sadd_tablemethod acceptsfirstCol, firstRow, lastCol, lastRow, hBand, vBand)now.0.8.10.2 (2019-10-23)Add ability to restart list numbering. (https://github.com/python-openxml/python-docx/pull/210)Examplehttps://github.com/python-openxml/python-docx/issues/25#issuecomment-143231954fromdocximportDocumentdocument=Document()# Add desired numbering styles to your template file.# Extract abstractNumId from there. In this example, abstractNumId is 10numId=document.get_new_list("10")# Add a listp=document.add_paragraph(style='ListParagraph',text="a")p.num_id=numIdp.level=0p=document.add_paragraph(style='ListParagraph',text="b")p.num_id=numIdp.level=1p=document.add_paragraph(style='ListParagraph',text="c")p.num_id=numIdp.level=1p=document.add_paragraph(style='ListParagraph',text="d")p.num_id=numIdp.level=0p=document.add_paragraph(style='ListParagraph',text="e")p.num_id=numIdp.level=1p=document.add_paragraph(style='ListParagraph',text="f")p.num_id=numIdp.level=0# Restart numbering at the outer levelnumId=document.get_new_list("10")# Add the same list once again. The numbering is restartedp=document.add_paragraph(style='ListParagraph',text="a")p.num_id=numIdp.level=0p=document.add_paragraph(style='ListParagraph',text="b")p.num_id=numIdp.level=1p=document.add_paragraph(style='ListParagraph',text="c")p.num_id=numIdp.level=1p=document.add_paragraph(style='ListParagraph',text="d")p.num_id=numIdp.level=0p=document.add_paragraph(style='ListParagraph',text="e")p.num_id=numIdp.level=1p=document.add_paragraph(style='ListParagraph',text="f")p.num_id=numIdp.level=0document.save("num.docx")0.8.10.1 (2019-10-16)allow table looking (header row/col, footer row/col, bands) modification.https://github.com/python-openxml/python-docx/pull/579Added font property to paragraph.https://github.com/python-openxml/python-docx/pull/417
Package: python-dogeapi
python-dogeapi==============Python module for dogeapi.comProvide a class to access [DogeApi][https://www.dogeapi.com] API.```shpip install python-dogeapi```All methods from [the exposed API][https://www.dogeapi.com/api_documentation] are availables with their argument.HTTP arguments must be passed as named python arguments.Examples :```pythonfrom dogeapi.wow import Dogeprint Doge("SUCH ADRESS").get_balance()addresses = Doge("SUCH ADRESS").get_my_addresses()for address in addresses :print address, Doge("SUCH ADRESS").get_address_received(payment_address = address)print Doge("SUCH ADRESS").get_address_by_label(address_label = "main")print Doge().get_current_block()print Doge().get_difficulty()print Doge("SUCH ADRESS").get_new_address(address_label = "WOW SuCH TEST PYTHON API")print Doge("SUCH ADRESS").withdraw(amount = 5, payment_address = "DFSzxeWRXVALxVUdNF1Dk2WjqbF8b7mWjV")```DOGE tip me : DFSzxeWRXVALxVUdNF1Dk2WjqbF8b7mWjV
Package: python-dogecoin
Python DogecoinThis is a fork of adogecoin-pythonlibrary focused on a Python 3 support only. Note that you are looking forpython-dogecoinversionon PyPIinstead of originaldogecoin-python.This package allows performing commands such as listing the current balance and sending coins to the Satoshi (original) client from Python. The communication with the client happens over JSON-RPC.:book: Documentation for the library can be foundhere.:lemon: This project usespodmenalibrary to add fancy icons to commit messages.Installation$pipinstallpython-dogecoinUsageConnect to blockchain daemon locally and make a simple request"""Checks whether address provided is a valid Dogecoin wallet"""importdogecoinrpcclient=dogecoinrpc.connect_to_local()address='D6cobCBMtRoJNw8kxAWJ8GtRbbaxSAB37u'result=conn.validateaddress(address)print(result)For other examples and code snippetscheck documentation.Developmentpyenvis used to easily create virtual environment for the development. Usepyenv-installerto quickly setup it locally.$pyenvvirtualenv3.8.1python-dogecoin
$pyenvactivatepython-dogecoin
$pipinstall--upgradepip
$pipinstall-e.Formatting your code after adding changes$pyenvactivatepython-dogecoin
$pipinstall-e".[dev]"$makeformatTestingTo launch basic set of unittests$pyenvactivatepython-dogecoin
$pipinstall-e".[test]"$pytest-svtests/
$flake8.# lint code to spot any other errorsTo launch integration tests you needDogecoin serverto be up and running and configured to usetestnet.$pytest-svtests/--run-integrationMuch donationsIf you loveDogecoinand want to support the project you can send coins to this walletD7DA74qzZUyh9cctCxWovPTEovUSjGzL2S:dog2: :rocket: :full_moon:
Package: python-doi
Python package to work with Document Object Identifier (doi)Development of python-doi happens onGithub.InstallationTo install the latest released version of python-doi, run this command in your terminal:$pipinstallpython-doiThis is the preferred method to install python-doi, as it will always install the most recent stable release.If you don’t havepipinstalled, thisPython installation guidecan guide
you through the process.To install the latest development version of python-doi fromGithub.$pipinstallgit+https://github.com/papis/python-doi.git@master#egg=doiUsageTo use python-doi in a project:import doi
Package: python-dos-like
python-dos-like is a set of Python bindings for thedos-likeprogramming library by Mattias
Gustavsson.Documentation:https://python-dos-like.readthedocs.io/en/latest/Source Code:https://github.com/cknave/python-dos-likeUsagepipinstallpython-dos-likepython-dos-like can be used in the same way as dos-like by callingdos_like.starton your
main function:fromrandomimportrandrangeimportdos_likefromdos_like.dosimport*defmain():setvideomode(videomode_320x200)whilenotshuttingdown():waitvbl()for_inrange(50):setcolor(randrange(256))line(randrange(320),randrange(200),randrange(320),randrange(200))setcolor(randrange(256))fillcircle(randrange(320),randrange(200),randrange(30))setcolor(randrange(256))circle(randrange(320),randrange(200),randrange(30))dos_like.start(main)You can also use python-dos-like in the Python REPL by callingdos_like.run_in_background:>>>importdos_like>>>fromdos_like.dosimport*>>>dos_like.run_in_background(['-w'])>>>cputs('hello world!')NoteWhy the['-w']?  This passes the-wflag through to dos-like, which tells it to
run in windowed mode.  Without it, dos-like starts in full screen and you have to press
F11 to enter windowed mode.BuildingBuilding python-dos-like requires C development tools to be installed.On Linux and macOS, theSDL2andGLEWlibraries are required.If building from a git repository, you must update submodules to get the dos-like source.gitsubmoduleupdate--init--recursive$python-mvenv.venv$..venv/bin/activate(.venv)$pipinstall-e'.[dev]'(.venv)$coveragerun-munittest&&coveragereportSeveral environment variables may be set to control compile-time options:Environment variableDefaultDescriptionALWAYS_UPDATE1Update the screen in the background.  Set this to0to
restore dos-like’s default behavior of pausing updates when
the window loses focus.CFLAGSExtra compiler flags.  Of note,-DNULL_PLATFORMis useful
to build a library for headless build servers.LimitationsMemory managementMemory allocated by dos-like will be freed when its corresponding bython buffer object is
garbage collected.  The current draw target and music will be retained even if no other python
code has a reference, but any playing sounds will not be.  Deleting or releasing the last
reference to a playing sound may cause issues.PlatformsThis library has been tested on Linux, Windows, and macOS.macOS does not support GUI operations in a background thread, so it cannot be used from the
Python REPL by callingrun_in_background().python-dos-like can be compiled as a WebAssemblyPyodidemodule, but will fail to import due to
a missing symbol fromWAjic.  Even if this symbol (J, an object containing JS functions to
be called from C) is added to the imports when loaded by Pyodide, it does not appear to be
compatible.It is not clear to me what the best way forward is for WebAssembly support: getting a Pyodide
module to import WAjic functions, building a Pyodide module in WAjic, or removing Pyodide or
WAjic from the project entirely.
Package: python-dotenv-run
Run command with environment variables populated bypython-dotenv.InstallationIf usingPipenv:pipenv install --dev python-dotenv-runOtherwhise:pip install python-dotenv-runInstruction onwards assumes you usePipenv. If you do not, simply drop thepipenv runprefix in all commands.UsageSay you have a Flask app in a file namedwebapp.py:import flask

app = flask.Flask(__name__)

@app.route('/')
def hello():
    return "Hello World!"Add a file named.envalongside with the project:FLASK_APP=webapp.pyAfter installing dependencies, you can run it like this:pipenv run dotenv-run flask run
Package: python-dpcolors
# python-dpcolors[![Build Status](https://travis-ci.org/nsavch/python-dpcolors.svg?branch=master)](https://travis-ci.org/nsavch/python-dpcolors)Python library for converting DarkPlaces color strings to various other formatsSupports the following conversions* dp -> irc* dp -> ansi 8 bit* dp -> ansi 24 bit* irc -> dp* irc -> ansi 8 bit* irc -> ansi 24 bit# Installation```bashpip install python-dpcolors```# Example usage```pythonfrom dpcolors import ColorStringcs = ColorString.from_dp('^3hello')print(cs.to_irc())print(cs.to_ansi_8bit())print(cs.to_ansi_24bit())cs = ColorString.from_irc('\x0305hello')print(cs.to_dp())```
Package: python-draughts
python-draughtsBased onImparaAI/checkersand using various concepts fromRoepStoep/draughtsnet.A Python3 library that you can use to play a game of draughts. This is just a set of classes that you can use in your code, it's not an interactive shell draughts game (unlikepython-chessandpython-shogifor the gameschessandshogirespectively).AssumptionsThe rules used are for competitiveInternational draughts(also called Polish draughts or International checkers). This means a 10x10 board with force captures and regular kings. Also supporting various other draughts variant (description on supported variants).Each position on the board is numbered 1 to 50. Each move is represented as an array with two values:starting positionandending position. So if you're starting a new game, one of the available moves is[9, 13]for player 1. If there's a capture move, the ending position is the position the capturing piece will land on (i.e. two rows from its original row), which might look like[13, 22].Each piece movement is completely distinct, even if the move is part of a multiple capture series. InPortable Draughts Notationmutli-capture series are usually represented by a5-32(for a particularly long series of jumps), but in certain situations there could be multiple pathways to achieve that final position. This game requires an explicit spelling out of each distinct move in the multi-capture series.Note: Just examples, not necessarily legal positions/moves.UsageCreate a new game:fromcheckers.gameimportGamegame=Game()See whose turn it is:game.whose_turn()#1 or 2Get the possible moves:game.get_possible_moves()#[[9, 13], [9, 14], [10, 14], [10, 15], [11, 15], [11, 16], [12, 16]]Make a move:game.move([9,13])Check if the game is over:game.is_over()#True or FalseFind out who won:game.get_winner()#None or 1 or 2Review the move history:game.moves#[[int, int], [int, int], ...]Change the consecutive noncapture move limit (default40according to therules):game.consecutive_noncapture_move_limit=20game.move_limit_reached()#True or FalseReview the pieces on the board:forpieceingame.board.pieces:piece.player#1 or 2piece.other_player#1 or 2piece.king#True or Falsepiece.captured#True or Falsepiece.position#1-32piece.get_possible_capture_moves()#[[int, int], [int, int], ...]piece.get_possible_positional_moves()#[[int, int], [int, int], ...]To doFixtests dirto test code each commit.AcknowledgementsImparaAI/checkersfor creating a 8x8 draughts library.RoepStoep/draughtsnetfor various python concepts to help create this library.AttackingOrDefending/lidraughts-botfor implementingImparaAi/checkersfor variants and 10x10 international draughts for alidraughts-bot.
Package: python-drawio
🚧 WIP draw.io using PythonCreateDraw.io (diagrams.net)drawings, with Python.Without dependency !FeaturesRectanglesLinesstroke type, thickness, colorrounded, curvedConnected ends, intermediate pointsUsagefrom xml.etree.ElementTree import tostring

d = Document()
p1 = Page("Page-1")
p2 = Page("Page-2")
d.add_page(p1)
d.add_page(p2)

r = RoundedRectangle(
    x=200, y=100, width=100, height=100,
    content="blabetiblou",
    text_align="left", text_valign="top",
)
p1.add_content(r)
p1.add_content(Line(points=[
    (r, 0.5, 0),
    (200, 50),
    (200, 100),
], stroke_thickness=4, stroke_color="#FF000",
    content="bonjour", curved=True))

with open('widespot.drawio', 'w') as f:
    f.write(tostring(d.to_xml()).decode())
Package: pythonDrive
PythonDriveA minimal Python wrapper for Google DriveBuilt to simplify some Google Drive usage using service accounts even further than possibleUsageMake sure you have a service account with the Google Drive API enabled, can be foundhereand the instructions of how to acquire a service account may be foundherepip install pythonDriveimportpythonDrive# or you can do# from pythonDrive import auth as pyAuth# from pythonDrive import drive as pyDrivePyAuth# assuming you imported abovegoogleClient:object=pyAuth.clientServiceAccountAuth('path/to/key.json',['scopes'])# This will be your actual Google Drive interactorgoogleDrive:object=pyDrive.drive(googleClient)# Get a list of all your fileslistOfFiles:list=googleDrive.get_all_files()print(listOfFiles)
Package: python-driver
AboutA Python driver for the "Intelligent Parker Amplifier" or IPA servo drive/controller by Park MotionModel: IPA04-HC
Product Page:http://www.parkermotion.com/products/Servo_Drive_Controllers__7313__30_32_80_567_29.htmlSetting up a development environment# Create virtual enviromentpython-mvenv.venv# Activate virtual environment Unix/MacOssource.venv/Scripts/activate# or activate on Windows.venv\Scripts\activate.bat# Upgrade pip (depending on the Python version installed, a newly created virtual environment will how have a version of pip that is vastly out of date)python-mpipinstall--upgradepip# Install required packagespipinstall-rrequirements.txtHelpful ResourcesParker Motion Manager (PPM)Location:/product_materials/Software/Parker Motion Manager Ver 2.2.1050/pmm_installer_2_2_1050.exeAllows you to interact with the railHas useful help documentsSee "Parameter Reference"C:\Program Files (x86)\Parker Hannifin\Parker Motion Manager\Help Files\Reference Guides.chmParker Motion Manager Guide:\User Guides\ACR_Programmers_Guide.pdfReference IPA Add-on InstructionsLocation:/product_materials/Software/Add On Instructions v5/IPA_AOI_Rev5.zip/IPA_AOI_v5/EthernetIP_IPA_B.pdfLocation:/product_materials/Software/Add On Instructions v5/IPA_AOI_Rev5.zip/IPA_AOI_v5/Information/IPA Ethernet IP Parameter Mapping.xlsx.L5X files are presumably used with certain PLC software, but there is some useful reference material in the pdfs.ComACRServer6 Communications ServerLocation:/product_materials/Software/ComACRServer6xAn automation server that provides communications between ACR controllers and PC software applicationsIncludes samples applications in VB.NET, C#, C++ and VB6pycomm3 documentationhttps://docs.pycomm3.dev/en/latest/index.htmlUseful pages:https://docs.pycomm3.dev/en/latest/usage/cipdriver.htmlhttps://docs.pycomm3.dev/en/latest/examples/generic_messaging_examples.html#generic-messaginghttps://docs.pycomm3.dev/en/latest/api_reference/data_types.html