Saravanan666/pypi-org huggingface dataset:
Package: invisibleroads-macros-web
Shortcut Functions for Web OperationsInstall# Install without extraspipinstallinvisibleroads-macros-web# Install with extraspipinstallinvisibleroads-macros-web[jinja,markdown,starlette]Use# Open browserfrominvisibleroads_macros_web.browserimport(open_browser)# Escape charactersfrominvisibleroads_macros_web.escapeimport(escape_quotes_html,escape_quotes_js)# Check portsfrominvisibleroads_macros_web.portimport(find_open_port,is_port_in_use)# Render markdownfrominvisibleroads_macros_web.markdownimport(get_html_from_markdown)# Configure templatesfrominvisibleroads_macros_web.jinjaimport(AssetStorage,RelativeTemplateEnvironment,TemplatePathLoader,url_for)frominvisibleroads_macros_web.starletteimport(TemplateResponseFactory)Testgitclonehttps://github.com/invisibleroads/invisibleroads-macros-webcdinvisibleroads-macros-web
pipinstall-e.[jinja,markdown,starlette,test]pytest--cov=invisibleroads_macros_web--cov-reportterm-missingtests0.3AddAssetStorageAddremove_single_paragraph,remove_parent_paragraphs0.2AddTemplateResponseFactoryAddRelativeTemplateEnvironment,TemplatePathLoaderRemove extraneous p tags inget_html_from_markdown0.1Addopen_browser,escape_quotes_html,escape_quotes_jsAddget_html_from_markdown,find_open_port,is_port_in_use
Package: invisibleroads-posts
InvisibleRoads PostsThis package provides our customized foundation for building a web service using pyramid.UseInstall dependencies.pip install -U cookiecutterInitialize project.cookiecutter https://github.com/invisibleroads/invisibleroads-cookiecutterFollow the instructions in the generated README.Testgit clone https://github.com/invisibleroads/invisibleroads-posts
cd invisibleroads-posts
pip install -e .[test]
pytest --cov=invisibleroads_posts --cov-report term-missing tests0.7Restart from scratchRestrict cross origin resource sharingDefine EnumeratedBase, RandomBase0.6Replace emphasis with highlighted0.5Add base_urlAdd test fixtures for downstream packagesBundle css and js from website.dependencies with cache bustingDefine get_record_idLet templates override page_author, copyright_year, copyright_authorReplace expiration_time with expiration_time_in_seconds0.4Add confirmation_modalAdd page_descriptionFix Python 3 compatibility0.3Add extensible command line script0.2Replace mako with jinja20.1Add posts scaffold
Package: invisibleroads-records
InvisibleRoads RecordsThis package adds database functionality to your pyramid web service.UseInstall dependencies.pip install -U cookiecutterInitialize project.cookiecutter https://github.com/invisibleroads/invisibleroads-cookiecutterFollow the instructions in the generated README.Testgit clone https://github.com/invisibleroads/invisibleroads-records
cd invisibleroads-records
pip install -e .[test]
pytest --cov=invisibleroads_records --cov-report term-missing tests0.5Remove sqlalchemy cacheSupport database extensions0.2Use server_cache.sqlalchemy setting prefix0.1Add initialize script
Package: invisibleroads-scripts
Here are command-line scripts for managing your goals.pip install -U invisibleroads-scripts
invisibleroads edit
    Do
        Mark pending
        _ Mark cancelled
        + Mark done
    Exercise
        Do 10 pullups
        Do 20 pushups
        Do 30 jumps
    Sleep
invisibleroads edit -A            # Include archived goals
invisibleroads edit your-keyword  # Filter by keyword
invisibleroads edit your-goal-id  # Focus on specific goal
    # Mission
        Specify a goal
    # Log
        Record notes
    # Schedule
    20181225
        Schedule goals by date using YYYYMMDD
    # Tasks
        List remaining tasks using nested indentScript ConfigurationHere are optional steps to configure your scripts.vim ~/.invisibleroads/configuration.ini
     [editor]
     command = vim
     timezone = US/Eastern

     [database]
     # dialect = postgresql
     # username =
     # password =
     # host =
     # port =
     # name =
     dialect = sqlite
     path = ~/.invisibleroads/goals.sqlite

     [archive]
     folder = ~/.invisibleroads
     business.terms = business goals
     business.folder = ~/Projects/business-missions
     personal.terms = personal goals
     personal.folder = ~/Projects/personal-missions

pip install -U invisibleroads-scripts
invisibleroads editDatabase ConfigurationHere are the steps if you would like to configure a remote database.ssh your-machine
   # Install packages
   sudo dnf install -y postgresql-server
   # Initialize database server
   sudo postgresql-setup --initdb --unit postgresql
   # Start database server
   sudo systemctl start postgresql

   # Add database user
   sudo -s -u postgres
      psql
         CREATE USER your-username WITH PASSWORD 'your-password';
         CREATE DATABASE your-database OWNER your-username;

   # Configure database access
   sudo -s -u postgres
      psql
         \password postgres
         show hba_file;
   sudo vim /var/lib/pgsql/data/pg_hba.conf
      host your-database your-username your-ipv4 md5
      host your-database your-username your-ipv6 md5
      # host your-database your-username 0.0.0.0/0 md5
      # host your-database your-username ::0/0 md5
   sudo vim /var/lib/pgsql/data/postgresql.conf
      listen_addresses = 'your-ip'
      # listen_addresses = '*'
   sudo systemctl restart postgresql

   # Open database port
   sudo firewall-cmd --add-port=5432/tcp

   # Start database server on boot (optional)
   sudo systemctl enable postgresql
   sudo firewall-cmd --permanent --add-port=5432/tcp

vim ~/.invisibleroads/configuration.ini
   [editor]
   command = vim
   timezone = US/Eastern

   [database]
   dialect = postgresql
   username = your-username
   password = your-password
   host = your-machine
   port = 5432
   name = your-database

   [archive]
   folder = ~/.invisibleroads
   business.terms = business goals
   business.folder = ~/Projects/business-missions
   personal.terms = personal goals
   personal.folder = ~/Projects/personal-missions2.0Support remote database1.0Added functionality from invisibleroads-website
Package: invisibleroads-uploads
Add basic file upload functionality to your Pyramid app.UsePrepare environment.export VIRTUAL_ENV=~/.virtualenvs/crosscompute
virtualenv ${VIRTUAL_ENV}
source ${VIRTUAL_ENV}/bin/activate

export NODE_PATH=${VIRTUAL_ENV}/lib/node_modules
npm install -g browserify uglify-jsInstall package.cd ~/Projects/invisibleroads-uploads
python setup.py develop
bash refresh.shAdd settings.upload.id.length = 32Configure views.config.include('invisibleroads_uploads')Call template macro.{% from 'invisibleroads_uploads:templates/parts.jinja2' import upload_button %}
{{ upload_button(request, id='xyz-upload', text='Browse for xyz', class='xyz') }}Add callback and activate button.$('#xyz-upload').on('uploaded.ir', function(e, d) {
  console.log(d.upload_id);
}).enable();0.4Define Upload.save, Upload.save_from, Upload.loadReplace get_upload_from with Upload.get_from0.3Handle HTTP status code 413 Payload Too Large0.2Ignore multiple clicks on upload button until dialog closesReplace uploaded.ir.upload with uploaded.ir0.1Add basic upload functionalityIgnore multiple clicks on upload button for a few seconds
Package: invisibleroads-users
InvisibleRoads UsersThis package adds security functionality to your pyramid web service.UseInstall dependencies.pip install -U cookiecutterInitialize project.cookiecutter https://github.com/invisibleroads/invisibleroads-cookiecutterFollow the instructions in the generated README.Testgit clone https://github.com/invisibleroads/invisibleroads-users
cd invisibleroads-users
pip install -e .[test]
pytest --cov=invisibleroads_users --cov-report term-missing tests0.6Restart from scratchUse pyramid-authsanityRestore GoogleRestore encryptionDefine check_authorization0.5Add user.name, user.image_urlReplace velruse with requests-oauthlibSupport Google, LinkedInUse pyramid-multiauth0.4Define request.authenticated_userRemove user.token0.3Add UserFolderMixinInclude CSRF token for PATCH requests0.2Let downstream packages override User, RootFactory0.1Add pyramid_redis_sessions
Package: invocations
What is this?Invocations is a collection of reusableInvoketasks,
task collections and helper functions. Originally sourced from the Invoke
project’s own project-management tasks file, they are now highly configurable
and used across a number of projects, with the intent to become a clearinghouse
for implementing common best practices.Currently implemented topics include (but are not limited to):management of Sphinx documentation treesPython project release lifecyclesdependency vendoringrunning test suites (unit, integration, coverage-oriented, etc)console utilities such as confirmation promptsand more.RoadmapWhile Invocations has been released with a major version number to signal
adherence to semantic versioning, it’s somewhat early in development and has
not fully achieved its design vision yet.We expect it to gain maturity in tandem with the adoption and development of
Invoke post-1.x. It’s also highly likely that Invocations will see a few major
releases as its API (and those of its sister library,patchwork) matures.For a high level roadmap re: when Invocations will get significant updates, see
the maintainer’sroadmap page.DevelopmentThis project uses the same dev methodology as Invoke proper - please see its
development pagehere.
Package: invogen
InvogenInvoGen is a package to generate beautiful invoices using Python.Getting StartedTo install InvoGen, simply runpipinstallinvogenUsing InvoGenInvoGen is easy to use! In the command prompt or in a file type:frominvogenimport*foobar_inc=Customer("test",name="Foobar Inc.")invoice=Invoice(foobar_inc)invoice.add_entry(InvoiceEntry(id_code="Test01",description="Some entry item",rate=5,quantity=1,))invoice.shipping=3You can get a printout of your invoice like this:>>>print(invoice)InvoiceforFoobarInc.(test)|ID|Description|Rate|Quantity|Amount|+--------+----------------------+----------+----------+----------+|Test01|Someentryitem|5.00|1|5.00|+--------+----------------------+----------+----------+----------+Sub-total:5.00Shipping:3.00Discount:-0.00+---------------------+Total:8.00To generate a PDF invoice using the default LaTeX template, usetemplate=LatexTemplate("default.tex")template.to_pdf(invoice)N.B.To use LaTeX templates, you will have to have LaTeX installed.
You can find out how to install LaTeX for your systemhere.DocumentationDocumentation can be found onRead the DocsThe docs are built with Sphinx and autodoc.
To build the docs as html yourself, usecddocs
makehtmlTestingThe tests are in/test.
To run the tests with coverage, usepytestContributingPlease feel free to fork and open a pull request if you would like to change something.The dependencies can be installed using pip andrequirements.txtor Pipenv and thePipfile.More templates would be especially welcome!AuthorsSamuel Searles-Bryant -websiteLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: invoice
invoice-python-lib中華民國財政部統一發票 - Python簡介本程式主要用於取得中華民國財政部統一發票號碼，並用於發票號碼兌獎。安裝本地端安裝git clone git@github.com:as209099/invoice-python-lib.git
python3 -m setup.py installPip PyPI安裝pip install invoice使用方法# 初始化時會自動下載當期與上期統一發票之資料>>>frominvoiceimportInvoice>>>invoice=Invoice()# 取得當期民國年與月份>>>invoice.get_years_and_months()'111年05-06月'# 取得當期的開獎發票號碼>>>invoice.get_numbers()[['特別獎','46438476'],['特獎','54769852'],['頭獎','17858097'],...]# 也能取得上期的民國年與月份>>>invoice.get_previous_years_and_months()'111年03-04月'# 以及上期的開獎發票號碼>>>invoice.get_previous_numbers()[['特別獎','32220402'],['特獎','99194290'],...,['頭獎','27854976']]# 兌獎>>>invoice_list=invoice.get_numbers()>>>my_numbers=['12345678','12345677',...,'123']>>>prize_list=invoice.redeem(invoice_list,my_numbers)>>>print(prize_list)[['12345678',None],['12345677','六獎'],...,['123','格式有誤']]使用之LibraryaiohttpBeautifulSoup4enjoy coding!授權採用MIT授權條款，可以自行運用，也可以發起Issue或Pull Request給我。
Package: invoice-captcha
国税总局发票查验平台验证码获取与识别使用指北pip install invoice-captcha调用示例：importrequestsfrominvoice_captcha.utilsimportget_captcha_params,parse_captcha_resp,kill_captcha_fast,uaCAPTCHA_URL="https://fpcy.guangdong.chinatax.gov.cn/NWebQuery/yzmQuery"# 发票代码key1="011111111111"# 发票号码key2="11111111"# # 开票日期# key3 = "20200603"# # 校验码或发票金额# key4 = "000000"deffetch_captcha(invoice_code,invoice_no):sess=requests.Session()# 使用代理，需要自备代理# sess.proxies = proxysess.headers={"User-Agent":ua.random}# 获取验证码请求参数payload=get_captcha_params(invoice_code=invoice_code,invoice_no=invoice_no)# 通过官网获取验证码r=sess.get(CAPTCHA_URL,params=payload)# 验证码请求参数解密plain_dict=parse_captcha_resp(r)# 验证码请求返回明文# key1 图片base64# key4 验证码需要识别的颜色代码print("解密参数 --- ",plain_dict)# 调用识别测试接口captcha_text=kill_captcha_fast(plain_dict,# 默认API有使用次数限制，可联系作者QQ：27009583，测试独立接口# api="http://kerlomz-ac86u.asuscomm.com:19811/captcha/v1")# 输出识别结果print("识别结果 --- ",captcha_text)if__name__=='__main__':foriinrange(10):fetch_captcha(key1,key2)输出结果:解密参数---{'key1':'iVBORw0KGgoA...5ErkJggg==','key2':'2020-06-16 16:56:36','key3':'9636e07df9aae6bd0483c5f6ea1ecbdc','key4':'03','key5':'2'}识别结果---xm8
解密参数---{'key1':'iVBORw0KGgoA...UVORK5CYII=','key2':'2020-06-16 16:56:42','key3':'d202f846119faa08a0e95eec48ca1bfe','key4':'01','key5':'2'}识别结果---命初
Package: invoiceCHIOU
取得發票號碼安裝pip insall invoiceTW含入模組from invoiceTW import invoice使用invoice.get_current()傳回值：{'title': '109年11月、12月', '特別獎': '77815838', '特獎': '39993297', '頭獎': '59028801、02813820、06896234', '增開六獎': '011、427'}
Package: invoice-conversion
Invoice Conversion PackageDescriptionTheinvoice_conversionpackage provides a seamless way to convert Excel invoice files into a PDF format. Whether you have a business or personal invoices that need converting, this tool streamlines the process, presenting you with a professional-looking PDF invoice.Table of ContentsInvoice Conversion PackageDescriptionTable of ContentsInstallationUsageContributingFuture EnhancementsIssuesLicenseInstallationTo install the package, usepip:pipinstallinvoice_conversionPlease before you proceed, make sure you have the following dependencies installed:pandasfpdfThey can be installed usingpip:pipinstallpandasfpdfUsageHere's a basic usage guide:Import the package:frominvoice_conversionimportInvoicePDFInstantiate theInvoicePDFclass:invoice_pdf_generator=InvoicePDF(invoices_path="path/to/excel/invoices",pdfs_path="path/to/output/pdf",company_name="Your Company Name",logo_path="path/to/company/logo.png")Next use thegenerate_allmethod to generate PDFs:invoice_pdf_generator.generate_all(product_id="product_id_column_name",product_name="product_name_column_name",amount_purchased="amount_purchased_column_name",price_per_unit="price_per_unit_column_name",total_price="total_price_column_name")Make sure toreplace the placeholdersin the function call withappropriate pathsandcolumn namesfrom yourExcel invoices.ContributingWe welcome contributions! If you'd like to contribute, please go ahead and fork the repository, make your suggested changes, and open a pull request.Future EnhancementsSupport for multiple currencies.OCR (Optical Character Recognition) integration to automatically detect columns in the Excel sheets.Customizable PDF templates to allow users more control over the appearance of the output PDF.A user-friendly GUI application for less tech-savvy users.IssuesIf you encounter any issues while using the package or have any feature requests, please visit theissues pageof our GitHub repository. We appreciate your feedback and will strive to address any concerns promptly.LicenseThis project is licensed under the MIT License. For more details, please see the LICENSE file in the repository.
Package: invoiceTW
取得發票號碼安裝pip insall invoiceTW含入模組from invoiceTW import invoice使用invoice.get_current()傳回值：{'title': '109年11月、12月', '特別獎': '77815838', '特獎': '39993297', '頭獎': '59028801、02813820、06896234', '增開六獎': '011、427'}
Package: invoicex-gui
Graphical User Interface forfactur-xlibrary with basic functionalities such as:Validate metadata of pdf invoiceExport metadata to in form of JSON, XML and YAMLExtract fields from PDF usinginvoice2dataEdit field values (metadata) of pdf invoicesTODOAdd external XML to PDFThe application is built usingPyQt5Latest Stable releasev0.1.0Linux:Linux PackageWindows (64-bit):Windows executableMacOS:MacOS executableRequirementsPyQt5 v5.10.1PyPDF2lxmlPyYAMLinvoice2dataExternal Dependencies:Imagemagick:https://www.imagemagick.org/script/download.phpGhostScript:https://www.ghostscript.com/download/gsdnld.htmlInstallationInstallinvoicex-guiusing pip$ pip install invoicex-guiRunning from source$ git clone https://github.com/invoice-x/invoicex-gui.git
$ cd invoicex-gui
$ pip install -r requirements.txt
$ python main.pyOR run from terminal$ $ git clone https://github.com/invoice-x/invoicex-gui.git
$ cd invoicex-gui
$ python setup.py install
$ invoicex-guiDevelopmentIf you are interested in improving this project, have a look at ourdeveloper guideto get you started quickly.ScreenshotsAuthorHarshit Joshi
Package: invoicez
invoicezTool to handle invoices. It is currently not meant to be usable directly by people finding about the package on GitHub. Please open an issue if you want more details or want to discuss this solution.InstallationWithpip:pip install invoicezDirectory Structureinvoicezworks with big assumptions on the directory structure of your presentation repository. Among those assumptions:your directory should be a git repositoryit should contain a jinja2 LaTeX invoice template in thejinja2directory, with a specific name (main.tex.jinja2)your invoice folders should be contained in an organization/company folder. This is meant to avoid repeating the company details all over the placeroot (git repository)
├── global-config.yml
├── jinja2
│   ├── main.tex.jinja2
├── assets
│   ├── img
│   │   ├── logo.png
│   │   └── signature.jpg
├── company1
│   └── company-config.yml
│       ├── invoice1.yml
│       └── invoice2.yml
└── company2
    └── company-config.yml
        ├── invoice1.yml
        └── invoice2.ymlConfigurationinvoicezuses two configuration files to avoid repetition, one for your details and global values, one for the details of the company you're writing the invoice for.Configuration mergingThe company config is merged into the global config, you can use that fact to override global values for a specific company.Using the configuration valuesThe values obtained from the merged configurations can be used directly in Jinja2 templates, or in LaTeX after a conversion from snake case to camel case: if the configuration contains the keyuser_email, it will be defined as the\UserEmailcommand in LaTeX.UsageSee the--helpflag of theinvoicezcommand line tool.
Package: invoke
Welcome to Invoke!Invoke is a Python (2.7 and 3.4+) library for managing shell-oriented
subprocesses and organizing executable Python code into CLI-invokable tasks. It
draws inspiration from various sources (make/rake, Fabric 1.x, etc) to
arrive at a powerful & clean feature set.To find out what’s new in this version of Invoke, please seethe changelog.The project maintainer keeps aroadmapon his website.For a high level introduction, including example code, please seeour main
project website; or for detailed API docs, seethe
versioned API website.
Package: invoke-containers
OverviewInvoke your tasks within containers.Run your tasks within containersGiven a task to create a binary with go@taskdefbuild(c):c.run(f"go build")don't assume everyone has go installed, run the task in a container@container("go:1.20")@taskdefbuild(c):c.run(f"go build")Specify the container runner program to useCONTAINER_INVOKE_PROGRAM="podman"invbuildTemporarily invoke tasks on host (not in containers)CONTAINER_INVOKE_ON_HOST=1invbuildTODO Run part of your task within one or more containers@taskdefsuper_task(c):c.run("echo operation on host")withcontainer("go:1.20"):c.run("go test")c.run("go build")withcontainer("sphinxdoc/sphinx"):c.run("make html")It's likely that this particular example would be better off split into several tasks using@containerand using invokes task dependencies.TODO specify shared environmentBy default eachc.run(COMMAND)runs in it's own docker container which gets torn down between calls. ex:c.run(COMMAND1)c.run(COMMAND2)...c.run(COMMANDn)becomes approximately:dockerrunIMAGECOMMAND1
dockerrunIMAGECOMMAND2
...
dockerrunIMAGECOMMANDnThis results in the internal container state being destroyed on each COMMAND.If we instead want to create the container environment and then run each command in the single environment, similar to:dockercontainercreateIMAGE
dockerexecCIDCOMMAND1
dockerexecCIDCOMMAND2
...
dockerexecCIDCOMMANDn
dockercontainerstopCID
dockercontainerrmCIDINVOKE_CONTAINERS_REUSE_CONTAINER=1\invbuild
Package: invoke-iife
iifeImmediately-invoked function expressions in PythonTheiifepackage provides a decorator functioniifethat calls the function/class it decorates and assigns the result to the name of the function/class.Some use cases include...Creating an anonymous object.Have you ever written a class that you know will only have one instance? You can use the iife decorator to create that instance immediately.fromiifeimportiife@iife@dataclassclassplayer:x:int=1y:int=2# player is an instance of the player classplayer.x# -> 1# The class cannot be reinstantiated because the name is shadowed.new_player=player(x=3,y=4)# -> SyntaxErrorThis might also be useful in library development to hide the implementation details of the class from the end user, who can only access the single instance.Complex initialization.Sometimes a variable needs to be initialized by complex logic that cannot be expressed as a single assignment. Traditionally, this can be done with temporarily setting the variable to a default value:x=Noney=[1,2,3]foriiny:ifi==2:x=iWhy not do it with an IIFE? (To be honest, this isn't the best example, but it's more fun to do it like this.)fromiifeimportiife@iifedefx()->Optional[int]:y=[1,2,3]foriiny:ifi==2:returni... And a bunch more. Maybe. Tbh this is mostly for fun.
Package: invoke-plugin-for-pylint
Invoke Plugin for PylintThis is a plugin for pylint which disables certain checks when using invoke.Installationpip install invoke-plugin-for-pylint, that's it.UsageAddinvoke_plugin_for_pylintto the list of pylint plugins.Disabled checkunused-argument: Each invoke task needs a context argument even if not needed.
Therefore this plugin will find all tasks and suppress allunused-argumenterrors when related to the context argumentConfigurationIf custom decorators for invoke tasks are used which wrapinvoke.tasktheadditional-invoke-task-decoratorsoption by checkerinvoke-plugin-for-pylintcan be used.
It's a csv list of names which indicate an invoke task.Please note, that the names must be full qualified and reflect the name of the final function.
For example, a decorator factory called "foo" in package "bar" which returns a function called
"_inner", will result in the name "bar.foo._inner".Example for the pyproject.toml:[tool.pylint.invoke-plugin-for-pylint]additional-invoke-task-decorators=["my_package.foo.make_task._inner","my_package.foo.make_other_task",]Build and PublishThis project usessetuptoolsas the dependency management and build tool.
To publish a new release, follow these steps:Update the version in thepyproject.tomlAdd an entry in the changelogPush a new tag likevX.X.Xto trigger the releaseSupport, Feedback, ContributingThis project is open to feature requests/suggestions, bug reports etc. viaGitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see ourContribution Guidelines.Code of ConductWe as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by itsCode of Conductat all times.LicensingCopyright 2023 SAP SE or an SAP affiliate company and invoke-plugin-for-pylint contributors. Please see ourLICENSEfor copyright and license information. Detailed information including third-party components and their licensing/copyright information is availablevia the REUSE tool.