Saravanan666/pypi-org huggingface dataset:
Package: pyinsertfile
DESCRIPTIONfor making main.py files with just pyinf in your cmdpyinsertfile have to option pypi, none or anything else
pypi option will make a package setup for you pypi package
none or anything else option will generate main.pyleave it nothing to generate main.pyUSAGEpyinfmodeEXAMPLEScmd: pyinf
mode: [(pypi): pypi package setup, (none, clear, anything else): main.py file] : --- at here enter the mode ---.
for example pypi mode.
package name: -- enter package name --.
for example pyinsertfileTutorial.
author name: -- enter your name --.
for example author.
finished now you have your package example you should fill it as your own.FIXESfixed must of bugs
this is stable versionCONTACTmirzaeiariya88@gmail.com
Package: pyinsights
PyInsightsA CLI tool To query CloudWatch Logs Insights.ToCUsageWrite ConfigurationExecute commandConfigurationversionlog_group_namequery_stringdurationtype: stringtype: objectlimitCLI OptionsEnvironment VariableUsageWrite ConfigurationWrite configuration topyinsights.ymllike:version:'1.0'log_group_name:-'/ecs/sample'query_string:'field@message|filter@messagelike/ERROR/'duration:'30m'limit:10I wrote examples, so seeexamples folder.Execute commandpyinsights-cpyinsights.yml-paws_profile-rregionConfigurationversionTypeRequiredstringtrueChoose configuration version from ['1.0']log_group_nameTypeRequiredarraytrueTarget log group names to queryquery_stringTypeRequiredstring or arraytrueSpecify CloudWatch Logs Insights query commands.
Please seeCloudWatch Logs Insights Query Syntax.:warning: If query_string type is array, Unix-style pipe|is not required. Execute in order from the top.ex)query_string:
  - 'field @message'
  - 'fileter @message like /WARN/'Equal toquery_string: 'field @message | fileter @message like /WARN/'durationTypeRequiredstring or objecttruetype: stringSpecify weeks, days, hours, minutes or seconds unit.weeks = w
days = d
hours = h
minutes = m
seconds = sex)duration: 10htype: objectSpecifystart_timeandend_time.
The format must beYYYY-MM-DD HH:MM:SS.ex)duration:
  start_time: '2020-01-01 00:00:00'
  end_time: '2020-01-01 01:00:00'limitTypeRequiredintegerfalseThe number of log to fetch.
Of course, you can specifylimitinquery_string.CLI OptionsOptionRequiredDescription-c, --configtrueSpecify yaml configuration by absolute or relative path-f, --formatfalseChoose from json or table-p, --profilefalseAWS profile name-r, --regionfalseAWS region-q, --quietfalseSuppress progress message-o, --outputfalseSpecify the filename to output the query result-v, --versionfalseShow versionEnvironment VariableIfprofileandregionoptions are not specified, AWS Credentials must be set as environment variables.AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGIONPlease seeEnvironment Variable Configurationfor the detail.
Package: pyinspector
# pyqualityPipeline to run quality tools on python projet :
* unittest
* coverage report
* flake8
* pylint
* radon for maintainability report
* xenon for cyclomatic complexity## Install` pip install pyinspector `## Usage` pyinspector <project_path> <options_not_required> `<project_path> need to be explicit path. Don’t use ‘.’You can use options :
*–no-report: to not print results and not coverage report
*–no-unittest: to not run unittest
*–no-flake8: to not run flake8
*–no-pylint: to not run pylint
*–no-mi: to not inspect maintainability
*–no-cc: to not inspect cyclomatic complexity
Package: py-inspector
# Py Inspector## Versão:[![PyPi version](https://pypip.in/v/py-inspector/badge.png)](https://pypi.python.org/pypi/py-inspector)[![PyPi downloads](https://pypip.in/d/py-inspector/badge.png)](https://pypi.python.org/pypi/py-inspector)## Build Status### Master[![Build Status](https://travis-ci.org/Maethorin/py-inspector.svg?branch=master)](https://travis-ci.org/Maethorin/py-inspector)[![Coverage Status](https://coveralls.io/repos/Maethorin/py-inspector/badge.svg?branch=master)](https://coveralls.io/r/Maethorin/py-inspector?branch=master)## DescriçãoPossibilita a criação de testes para PEP8 e PyLint que serão executados com nose## Exemplo```pythonimport unittestfrom py_inspector import verificadoresfrom seu_codigo import modulo_a_ser_validadoclass ValidandoPython(unittest.TestCase, verificadores.TestValidacaoPython):def test_deve_verificar_pep8_no_modulo(self):arquivo = modulo_a_ser_validado.__file__.replace('pyc', 'py')self.validacao_pep8([arquivo])def test_deve_verificar_pylint_no_modulo(self):arquivo = modulo_a_ser_validado.__file__.replace('pyc', 'py')self.validacao_pylint([arquivo])```
Package: pyinspectx
PyInspectXA simple Python package to access all variables, per scope after a runtime. Can be usedfor multiple purposes. (Ex: debugging, visual tool to highlight variables in runtime, ...)InstallationpipinstallpyinspectxUsageThe main class of the program is theInspectorclass. This class can be used to inspect the variables inside the runtime.We start generating the modified code. This code can be run as you wish.The snippet below shows how to generate the modified code.frompyinspectximportInspectortestCode=open(os.path.abspath(os.path.join(os.getcwd(),'example.py')),'r',encoding='utf-8').read()inspector=PyInspectX.Inspector()inspector.modify_code(testCode)modified_code=inspector.get_modified_code()print(modified_code)There is a built in method that generates a temp file inside the current working directory and runs the result for you. The output can be accessed inside a variable.frompyinspectximportInspectortestCode=open(os.path.abspath(os.path.join(os.getcwd(),'example.py')),'r',encoding='utf-8').read()inspector=PyInspectX.Inspector()inspector.modify_code(testCode)output=inspector.run_modified_code()print(output)IMPORTANT: Do not run the code usingexec()oreval()! Wrong results will occur.Inside the./tests/folder you can find a few examples on how to use the package.TODOAdd general (regex and keyword) support to block basic variable names inside the runtime.Make injected variables names random.Make a better viewer for the raw dataNew JSON output format so it can be used for automation and testing.Find more edge casesCheck for compatibility with other Python versions and systems.Setup Github action for pytest and flake8
Package: pyinspire
=========Pyinspire=========Retrieve results from the INSPIRE HEP database (http://inspirehep.net) from thecommand line.Author: Ian HustonContributors: David StraubReleased under the modified BSD license.Usage: pyinspire.py [options]Example: pyinspire.py -b -s "find a Feynman, Richard"Options:--version             show program's version number and exit-h, --help            show this help message and exit-s STRING, --search=STRINGsearch string to send to INSPIRE-b, --bibtex          output bibtex for entries--latexEU             use LaTeX(EU) format for entries--latexUS             output bibtex for entries-v, --verbose         print informative messages--debug               log lots of debugging informationTested with Python 2.7 and 3.4.Please be careful to not overload the INSPIRE server by repeatedly requestinglarge numbers of results. If using pyinspire in a script please add somethrottling of frequency of search queries.Note: Currently only the first 100 results are returned.
Package: pyinsta
Download-insta-postsThis package will help you download your favourite celebrity post and also any of your friends' profile picture.Installation:pipinstallpyinstaDownload your favourite celebrity's nthpicture of mthpost as follows:frompyinsta.downloadimportpostpost("username of the celebrity",m,n)Output:
The picture or video gets saved in the folder called instagram_downloads, which will be loacted in the command running directory.
Nomenclature of the picture or video saved will be:
"username_m_n.jpg/.mp4"Download your favourite celebrity's nthpost which has only a single picture in it, as follows:frompyinsta.downloadimportpostpost("username of the celebrity",n)Output:
The picture or video gets saved in the folder called instagram_downloads, which will be loacted in the command running directory.
Nomenclature of the picture or video saved will be:
"username_n.jpg/.mp4"Download any of your friends' profile picture as follows:frompyinsta.downloadimportprofile_picprofile_pic("username of the celebrity")Output:
The profile picture gets saved in the folder called instagram_downloads, which will be loacted in the command running directory.
Nomenclature of the picture saved will be:
"username_profile_pic.jpg"
Package: pyinsta3
pyinsta3pyinsta3 is a package to get instagram profile info of any user.Installationpip install pyinsta3ORpip3 install pyinsta3UsageProfile Classfrompyinsta3importProfileprofile=Profile("officialrickastley")data=profile.get_data()name=data["full_name"]print(name)>RickAstleyProfile Classfrompyinsta3importAsyncProfileimportasyncioasyncdeftest():profile=AsyncProfile("officialrickastley")data=awaitprofile.get_dataname=data["full_name"]print(name)asyncio.run(test())>RickAstleyKeys in the data dictionary -username
full_name
biography
followers
following
posts
is_private
is_verified
profile_pic_url
Package: py-instagram-dl
=====py_instagram_dl=====This python package let you download all the pictures of an instagram user.Quick start------------ Create a virtual environment. Optional but recommended. You can refer below article.https://www.pythoncircle.com/post/404/virtual-environment-in-python-a-pocket-guide/- Install dependencies::pip install beautifulsoup4 bs4 lmxl requests urllib3- Install the package::pip install py_instagram_dl- Use the package in your code. Example below::import py_instagram_dl as pyigdlimport systry:pyigdl.download(sys.argv[1], wait_between_requests=1)except Exception as e:print(e)- Please visit below link for more details and source code.https://www.pythoncircle.com/post/447/py_instagram_dl-the-python-package-to-download-all-pictures-of-an-instagram-user/.
Package: pyinstailor
# pyinstailorpyinstailor is a tailor to replace files directly in the executable file generated by PyInstaller. Sometimes the script is changed a little, for example, only refine log messages, no dependency changed, no analysis is required. In this case, pyinstailor could extract the executable, replace the old script with new one, then repack it.Usagepyinstailor.py [-h] [-d] [-s N] executable [files]ExamplesList all the available items in the archivepyinstailor dist/foo.exeReplace entry script “foo.py” in the bundle “foo.exe”pyinstailor dist/foo.exe foo.pyIf entry scrip is in other path, strip the first N pathpyinstailor -s 1 dist/foo.exe src/foo.pyReplace package filereader/__init__.pyin the bundle “foo.exe”pyinstailor dist/foo.exe reader/__init__.pyStrip the first path in the file pathpyinstailor -s 2 dist/foo.exe ../../reader/__init__.pyThis tool doesn’t support PyInstaller 2.0, and it’s not full test.## Change Logs### 1.4Fix bug: it fails when printing toc where the embedded PYZ archive
contains subdirectories### 1.3Fix python2.7 bug: it raises exceptionTypeError: makedirs() got an
unexpected keyword argument ‘exist_ok’### 1.2Fix bug: when repacking an executable where the embedded PKG archive
contains subdirectories, the repack script fails### 1.1Fix bug: the final bundle isn’t patched in some platforms
Package: pyinstaller-setuptools
PyInstaller SetupUse pyinstaller with setuptools!setup.pyfrompyinstaller_setuptoolsimportsetupsetup(...scripts=['path/to/a/script.py'],entry_points={'console_scripts':['entry=module.func']},...)Usage> python ./setup.py build
> python ./setup.py install
> python ./setup.py pyinstaller [-- <pyinstaller-flags>]
Package: pyinstallersubprocess
subprocess for pyinstallerpip install pyinstallersubprocessBased onhttps://github.com/pyinstaller/pyinstaller/issues/6362#issuecomment-968156787Read the post before using this module.Here is the most important part:"Make all your entry points available as python -m invokable submodules and change all your subprocess.run(["entry_point_foo"]) usages to subprocess.run([sys.executable, "-m", "hello_word.entry_point_foo"]).Extendthosesubprocess.run()callsto:ifgetattr(sys,'frozen',False):subprocess.run([os.path.join(sys._MEIPASS,"entry_point_foo")])else:subprocess.run([sys.executable,"-m","hello_word.entry_point_foo"])RunPyInstalleroneachentrypointsubmodule(e.g.hello_world/hello_world/run_hello_world.py)andmakeuseofMerge()toputthemtogetherinonebundle."importsubprocessfrompyinstallersubprocessimport(convert_py_file_to_module,subprocess_console,subprocess_console_devnull,subprocess_console_popen,subprocess_console_stdout_read,subprocess_no_console_devnull,subprocess_no_console_popen,subprocess_no_console_stdout_read)# The function convert_py_file_to_module turns the py file into an "python -m invokable submodule"modulename,entry=convert_py_file_to_module(modulename="mysubprocess",# choose what anything you want, but make sure that the folder "mysubprocess" doesn't exist in your base folderpythonfile=r"C:\Users\Gamer\anaconda3\envs\dfdir\pytfi.py",rename_pyfile=False,# renames r"C:\Users\Gamer\anaconda3\envs\dfdir\pytfi.py" -> r"C:\Users\Gamer\anaconda3\envs\dfdir\pytfi.old"overwrite_existing=True,# if the folder existsadd_main_entry=True,# if there is no entry, 'if __name__ == "__main__" ... will be added)print((modulename,entry))('mysubprocess','pytfi')# Here are some functions that take care of: "Execute the "extended" subprocess (if getattr(sys, 'frozen', False) ...)"p=subprocess_console(module=modulename,entry=entry,stdout=subprocess.PIPE,stderr=subprocess.PIPE,stdin=subprocess.PIPE,)print(p)# CompletedProcess(args=['C:\\Users\\Gamer\\anaconda3\\envs\\dfdir\\python.exe', '-m', 'mysubprocess.pytfi'], returncode=0, stdout=b'oioou\r\n', stderr=b'')# All functions:subprocess_console(module,entry,*args,**kwargs)subprocess_console_devnull(module,entry,*args,**kwargs)subprocess_console_popen(module,entry,*args,**kwargs)subprocess_console_stdout_read(module,entry,*args,**kwargs)subprocess_no_console_devnull(module,entry,*args,**kwargs)subprocess_no_console_popen(module,entry,*args,**kwargs)subprocess_no_console_stdout_read(module,entry,*args,**kwargs)# This module:# https://github.com/hansalemaos/env2installer# can help you with "Run PyInstaller on each entry point submodule (e.g. hello_world/hello_world/run_hello_world.py)..."
Package: pyinstallerui
PyinstallerUILet everyone is able to build python script to exe with pyinstaller, without any doc reading, support python3.7+.FeaturesAuto manage the venv to reduce the file size which disted by pyinstallerChoose venv or global env, for building without venv will not take up more space after the newest version ofpyinstallerEnsure pip installed in the venvsTerminal UI for pyinstallerRelease on the pypiOpen source from private repositoryReleaseexefile of this libUsequestionaryinstead ofPyInquirer, to use the newer prompt_toolkit.Usagepip install pyinstallerui -Upython -m pyinstalleruidrag and drop the files to console, and do as the UI said.create new venvinstall libs with pipbuild with pyinstallerno more to learnScreenshotRun > python -m pyinstalleruiChoose a existing venv, or create a new oneEnsure Pyinstaller installedpip install / uninstall some packages, or choose "No action" to skipdrag file to the console, or input the file pathchoose Test for testingchoose Build for build into exefill the app name: pyldchoose the checkbox for detail argswait for building
Package: pyInstallPackage
pyPackage moduleDescriptionpyPackage module makes use of Pyinstaller to build an app package ready to go.
It is a wrapper to ease the use of Pyinstaller.
It defines the build parameters in a settings file (yml file) and also add the ability to add external documents (documentation, config files, ...) and a launcher (.bat or .sh file)Note that Pyinstaller builds executable files according to the OS on which the program is exectuted :if executed on Windows, a windows executable file is generatedif executed on Linux, a linux executable file is generatedExampleHere is a basic example of use:from pyBaseApp.package import Package, Options
from pyBaseApp.applauncher import Configuration
 
settings = Configuration().settings('settings.yml')
try:
    options = Options(settings)
    Package(options, data)
except ValueError:
    print('package value is missing in settings')Wheresettings.ymlcould be:name: myApp
package: C:/scripts/my_app.py
distpath: C:/dist/myApp
data: 
- src: C:/scripts/resources/myapp.yml
    root_level: true
- src: C:/scripts/resources/README.md
    root_level: true
- src: C:\data\github\work\scripts\doc\easyPresentation\images
    dst: images
    root_level: true
sh:
    path: mypath
    options:
        l: myloggerpath
        s: mysettingspathList of available options:Pynstaller options and default values (Seepyinstaller documentationfor more info):name = None
onefile=False
console=True
binaries = dict()
icon = None
distpath = None
workpath = None
specpath = 'pyinstaller'
paths = []
clean = True
loglevel = loglevels.DEBUG.name
hiddenimports = []
additionalhooks = []
runtimehooks = []
excludemodules = []
package = None
no_confirm = Trueaddons options :data = None
version = None
sh = None
bat = NoneExamples of data and sh structures are given above
Package: pyInstalls
pyInstalls helps Windows users who can’t use any of the automated tools to install new modules (pip, easy_install).
If you’re at work and behind a proxy, even after configuring your proxy you still may have trouble installing modules (I know I do, it always fails to download).
What I normally have to do is download the package (zip, tar, .gz), unpack it, open a cmd propmt, cd to that folder and then; python setup.py installpyInstall does all of this for you. When you isntall pyInstall it will create a cmd file and place it in your ‘~AppDataRoamingMicrosoftWindowsSendTo’ folder which adds it to your right click menu.After installing, download a specific package you want, right click on it, click ‘Send-To’ then select installer.cmd. The cmd file will then send the path of the file you selected to the pyInstalls module inside your site-packages folder which will unpack and install for you.
Package: pyinstantcrawl
# py-instant-crawlpython library for scrape websites by specifying template in json## Installation```pip install pyinstantcrawl```## Quickstart1. create the template like below and save is as `sample.json````{"tip-of-day": {"expression": "string(//div[@class='tip-of-day'])","type": "xpath","getter": "get"},"testimonial": {"expression": ".testimonial","type": "css","getter": "getall"}}```2. call the command below```pythonpython main.py https://pragprog.com sample.json```now its work with parent + child structure. Check it at examples folder.
Package: pyinstapaper
============PyInstapaper============.. image:: https://img.shields.io/pypi/v/pyinstapaper.svg:target: https://pypi.python.org/pypi/pyinstapaper.. image:: https://img.shields.io/travis/mdorn/pyinstapaper.svg:target: https://travis-ci.org/mdorn/pyinstapaper.. image:: https://readthedocs.org/projects/pyinstapaper/badge/?version=latest:target: https://pyinstapaper.readthedocs.io/en/latest/?badge=latest:alt: Documentation StatusInstapaper_ is a tool for saving web pages to read later, e.g. offline on amobile device.  PyInstapaper is a Python wrapper for the `full Instapaper API`_... _Instapaper: https://www.instapaper.com.. _full Instapaper API: https://www.instapaper.com/apiTo use it, in addition to your Instapaper account username and password,you'll need to request API credentials from Instapaper.Usage=====.. code-block:: pythonfrom pyinstapaper.instapaper import Instapaper, FolderINSTAPAPER_KEY = 'MY_INSTAPAPER_API_KEY'INSTAPAPER_SECRET = 'MY_INSTAPAPER_API_SECRET'INSTAPAPER_LOGIN = 'me@example.com'INSTAPAPER_PASSWORD = 'p@ssw0rd'instapaper = Instapaper(INSTAPAPER_KEY, INSTAPAPER_SECRET)instapaper.login(INSTAPAPER_LOGIN, INSTAPAPER_PASSWORD)# Get the 10 latest instapaper bookmarks for the given account and do# something with the article textbookmarks = instapaper.get_bookmarks('starred')for bookmark in enumerate(bookmarks):do_something(bookmark.get_text())bookmark.archive()# Create a new folderfolder = Folder(instapaper, title='cool stuff')result = folder.add()Installation============To install PyInstapaper, simply:.. code-block:: bashpip install pyinstapaperAdditional info===============* Free software: MIT License* Documentation: https://pyinstapaper.readthedocs.org.* Boilerplate courtesy of cookiecutter: https://github.com/audreyr/cookiecutter* Thanks to `Ryan Galloway`_ for pointing the way to using the Python oauth2library for Instapaper's XAuth implementation, though ideally pyinstapaperwould use `requests-oauthlib`_.. _Ryan Galloway: https://github.com/rsgalloway/instapaper.. _requests-oauthlib: https://requests-oauthlib.readthedocs.org/en/latest/=======History=======0.1.0 (2015-09-26)------------------* First release on PyPI.0.2.0 (2018-05-02)------------------* Python 3 compatibility* Added 'have' param to get_bookmarks
Package: pyinstaweb
Copyright 2010 Flier Lu <flier.lu@gmail.com>Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: pyinsteon
This is a Python package to interface with an Insteon Modem. It has been
tested to work with most USB or RS-232 serial based devices such as the2413U,2412S,2448A7and Hub models2242and2245. Other models have
not been tested but the underlying protocol has not changed much over
time so it would not be surprising if it worked with a number of other
models. If you find success with something, please let us know.Thispyinsteonpackage was created primarily to support an INSTEON
platform for theHome Assistantautomation platform but it is structured to be general-purpose and
should be usable for other applications as well.RequirementsPython 3.8, 3.9, 3.10 or 3.11Posix or Windows based systemSome form of Insteon PLM or HubAt least one Insteon deviceInstallationYou can, of course, just install the most recent release of this package
usingpip. This will download the more recent version fromPyPIand install it to
your host.pip install pyinsteonIf you want to grab the the development code, you can also clone this
git repository and install from local sources:cd pyinsteon
pip install .
Package: pyinstinct
pyinstinctIt is said that we humans possess something calledinstinctor hunch, a power to know or see about things which are manifest but beyond the reaches of our normal five sense organs.pyinstinctis a command line number guessing game which tests just that - your instinct! It asks your computer to manifest (generate) a random number between 1 and 5, then asks you to guess it. Each hit earns you one point whereas a miss earns you zero points. Ten such guesses concludes a game and you'll get a score (such as 5/10).The score depends on how well you are at guessing or hunching! Over the course of these games, your typical or average score will be computed and each game will be compared against that. There is also the case that your average score might improve over time! Do you think that like all human skills, the skill of instinct or intuition can also be improved by practice? Why not just play this game and find out!Installationpip install pyinstinctUsage
Package: pyinstrument-flame
Provides a FlameGraphRenderer for pyinstrument.Uses Brendan Gregg's flamegraph.pl in the backend to render an interactive SVG.Example usage:```pythonimport pyinstrumentimport pyinstrument_flamewith pyinstrument.Profiler() as profiler:# do stuffrenderer = pyinstrument_flame.FlameGraphRenderer(title = "Task profile", flamechart=True)svg = profiler.output(renderer)```See the flamegraph.pl documentation for all renderer options.