Saravanan666/pypi-org huggingface dataset:
Package: postgresql-kernel
postgresql_kernelauthor: hsz12author-email:hsz1273327@gmail.comkeywords: jupyter,jupyter-kernel,postgresql,sql本项目fork自postgres_kernel.由于这个项目已经快4年每更新过了而我自己常用它,但它又有一些不好用的地方所以才有了现在这个项目.特性输入sql语言获得表格结果可选的自动提交不再需要设置环境变量DATABASE_URLjupyter console中可以退出.TODO加入常用可视化功能改用魔术命令配置连接信息安装pip install postgresql_kernel使用连接设置-- connection: postgres://postgres:postgres@localhost:5432/postgres-- autocommit: true-- (or false)输入sql获得结果
-- connection: postgres://postgres:postgres@localhost:5433/postgres0.0.2修复bug更新jupyter相关依赖项0.0.1增加类型注释更新依赖项,将psycopg2改为psycopg2-binary不再支持python3.7及以下版本0.0.0项目创建,原样复刻了postgres_kernel的功.MIT LicenseCopyright (c) 2021 网络编程组件Permission 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.
Package: postgresql-wheel
postgresql-wheelA Python wheel for Linux containing a complete, self-contained,
locally installable PostgreSQL database server.All servers run as the Python process user in a local path, so this
wheel does not require root or sudo privledges.  Databases can be
initialized in any directory.Servers can be setup and torn down in test fixtures with no additional
outside dependencies.Currently this wheel only works for most flavors of Linux.Postgres is compiled in the same "manylinux" environments provided by
thecibuildwheeltool usingGithub
Actionsand directly archived into the wheel's "package_data".The wheel can be installed with pip:$ pip install postgresql-wheelPostgres binaries in the package can be found in the directory pointed
to by thepostgresql.pg_binglobal variable.  Function wrappers
around all of the postgres binary programs, likeinitdbandpg_ctlfunctions are provided for convenience:>>>frompostgresqlimportinitdb,pg_ctl>>>initdb('-D testdatabase')>>>pg_ctl('-D testdatabase -o "-p 5678" -l testdatabase.log start')>>>importpsycopg2>>>c=psycopg2.connect("postgres://localhost:5678/postgres")# connect with local client>>>withc.cursor()asq:>>>q.execute("select version()")>>>print(q.fetchall())...[('PostgreSQL 13.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3), 64-bit',)]>>>pg_ctl('-D testdatabase stop')For the purposes of testing, convenience functions are provided for
setting up and tearing down databases:>>>pgdata,con_str=postgresql.setup()>>>postgresql.psql(f'-h{con_str}-c "select version()"')>>>postgresql.teardown(pgdata)There is also a pytest fixture calledtmp_postgresthat returns a
new connection string to a temporary database local domain socket, and
can be used in a pytest:>>>frompostgresqlimporttmp_postgres>>>deftest_foo(tmp_postgres):...postgresql.psql(f'-h{tmp_postgres}-c "select version()"')
Package: postgression
# python-postgressionA python client for the postgression API.## What is This?This is a simple CLI app that talks to the
[postgression](http://www.postgression.com/) public API, and generates a
temporary PostgreSQL database for usage in your test code (or just general
messing around).postgression databases are automatically deleted after 30 minutes. No
information is logged by the service.## InstallationYou can installpostgressionusing
[pip](http://pip.readthedocs.org/en/latest/):` bash $ pip install postgression `## UsageOnce you’ve gotpostgressioninstalled, you can generate a new PostgreSQL
database by runningpostgression… like so:` bash $ postgressionpostgres://user:password@host:port/db`Each time you runpostgression, you’ll get a new PostgreSQL database
provisioned for usage.If for some reason a database can’t be provisioned, an error will be returned.
Package: postgrest
postgrest-pyPostgREST client for Python. This library provides an ORM interface to PostgREST.Status:UnstableINSTALLATIONRequirementsPython >= 3.7PostgreSQL >= 12PostgREST >= 7Local PostgREST serverIf you want to use a local PostgREST server for development, you can use our preconfigured instance via Docker Compose.docker-composeupOnce Docker Compose started, PostgREST is accessible athttp://localhost:3000.InstructionsWith Poetry (recommended)poetryaddpostgrestWith PippipinstallpostgrestUSAGEGetting startedimportasynciofrompostgrestimportAsyncPostgrestClientasyncdefmain():asyncwithAsyncPostgrestClient("http://localhost:3000")asclient:r=awaitclient.from_("countries").select("*").execute()countries=r.dataasyncio.run(main())Createawaitclient.from_("countries").insert({"name":"Việt Nam","capital":"Hà Nội"}).execute()Readr=awaitclient.from_("countries").select("id","name").execute()countries=r.dataUpdateawaitclient.from_("countries").update({"capital":"Hà Nội"}).eq("name","Việt Nam").execute()Deleteawaitclient.from_("countries").delete().eq("name","Việt Nam").execute()General filtersStored procedures (RPC)awaitclient.rpc("foobar",{"arg1":"value1","arg2":"value2"}).execute()DEVELOPMENTgitclonehttps://github.com/supabase/postgrest-py.gitcdpostgrest-py
poetryinstall
poetryrunpre-commitinstallTestingpoetryrunpytestCHANGELOGRead morehere.SPONSORSWe are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.
Package: postgres-table-as-queue-tools
Postgres Table-as-queue Tools ModuleThere are just only several function to getting SQL queries for manage your table as a queue.from pg_table_as_queue_tools import get_sql_to_delete_queue_itemfrom pg_table_as_queue_tools import get_sql_to_get_batch_from_queuefrom pg_table_as_queue_tools import get_sql_to_release_queue_item
Package: postgrest-py
postgrest-pyPostgREST client for Python. This library provides an ORM interface to PostgREST.Status:UnstableINSTALLATIONRequirementsPython >= 3.7PostgreSQL >= 12PostgREST >= 7Local PostgREST serverIf you want to use a local PostgREST server for development, you can use our preconfigured instance via Docker Compose.docker-composeupOnce Docker Compose started, PostgREST is accessible athttp://localhost:3000.InstructionsWith Poetry (recommended)poetryaddpostgrestWith PippipinstallpostgrestUSAGEGetting startedimportasynciofrompostgrestimportAsyncPostgrestClientasyncdefmain():asyncwithAsyncPostgrestClient("http://localhost:3000")asclient:r=awaitclient.from_("countries").select("*").execute()countries=r.dataasyncio.run(main())Createawaitclient.from_("countries").insert({"name":"Việt Nam","capital":"Hà Nội"}).execute()Readr=awaitclient.from_("countries").select("id","name").execute()countries=r.dataUpdateawaitclient.from_("countries").update({"capital":"Hà Nội"}).eq("name","Việt Nam").execute()Deleteawaitclient.from_("countries").delete().eq("name","Việt Nam").execute()General filtersStored procedures (RPC)awaitclient.rpc("foobar",{"arg1":"value1","arg2":"value2"}).execute()DEVELOPMENTgitclonehttps://github.com/supabase/postgrest-py.gitcdpostgrest-py
poetryinstall
poetryrunpre-commitinstallTestingpoetryrunpytestCHANGELOGRead morehere.SPONSORSWe are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.
Package: postgresVectorTileGenerator
postgresVectorTileGeneratorA python package to automatically generate a cache of vector tiles between two zoom levels and a bounding box for a table in postgreSQL.Installpip install postgresVectorTileGeneratorHow to useimport os
from postgresVectorTileGenerator import generator

cache_location = f"{os.getcwd()}/cache"

tileGeneration = generator.GenerateTiles(cache_location, "localhost", 5432, "postgres", "postgres", "data", "states", 1, 5, [-118, 34, -84, 50])

tileGeneration.generate()
Package: postgrey
Postgrey🐘 Simple, Fast, Async & ORM PostgreSQL database client based onAsyncpgfor Python.FeaturesSimple: You can learn Postgrey in less than a hours!Fast: Since Postgrey is based on Asyncpg, Postgrey is really fast.Secure: Postgrey has SQL injection protection.ORM: You don't need to learn SQL for your apps.Freedom: If you are a SQL master, you still can execute SQL commands.Asyncpg: You easily can use Asyncpg in Postgrey.DocumentationCheck/docs/folder for documentation.AboutVersion: 0.0.1Requires:Python 3.6 >=Links:PyPi|GitHub
Package: postgrid-python
PostGrid Python LibraryThe PostGrid Python library enables you to access the PostGrid Print & Mail API
conveniently from applications written in Python. It contains classes representing
every resource in the PostGrid Print & Mail API and methods which create and operate
on these resources.InstallationIn order to install this package, runpipinstall--upgradepostgrid-pythonRequirementsPython 3.6+UsageYou must have a PostGrid Print & Mail Account (you can sign up athttps://dashboard.postgrid.com/signup) and access to your API key which you can retrieve from thesettings page.importpostgrid# Swap this out for your live API key to create live orderspostgrid.pm_key='test_sk_...'# Send a letterletter=postgrid.Letter.create(to={'first_name':'Apaar','last_name':'Madan','address_line1':'145 Mulberry St, Apt PH D, New York NY 10013','country_code':'US'},from_={'first_name':'Kevin','last_name':'Villena','address_line1':'90 Canal St','address_line2':'2nd Floor','city':'Boston','province_or_state':'MA','postal_or_zip':'02114','country_code':'US'},html='''<html><body><p>Hi, {{to.firstName}}</p><p>Welcome to PostGrid.</p><p>Yours Truly,</p><p>{{from.firstName}} {{from.lastName}}</p></body></html>''')# Prints 'ready'print(letter.status)# Cancel the letterletter=postgrid.Letter.delete(letter.id)# Prints 'cancelled'print(letter.status)Note that API parameters map one-to-one with the underlyingREST API.
However, instead ofcamelCase, this library usessnake_case. For example, aletterHTMLparameter
in the original API would beletter_htmlin this library.Handling ExceptionsErrors produced by the API will raise aPMErrorexception. ThePMErrorobject has atypefield that can be used to determine what the error was. It also has amessagefield
which provides a human readable message describing the error in detail.importpostgridpostgrid.pm_key='test_sk_...'try:template=postgrid.Template.create(description='SDK Template',html='''<html><body><p>Hi, {{to.firstName}}</p><p>Welcome to PostGrid.</p><p>Yours Truly,</p><p>{{from.firstName}} {{from.lastName}}</p></body></html>''',)exceptpostgrid.PMErrorase:print(e.status_code)print(e.type)print(e.message)raiseeSupportEmailsupport@postgrid.comif you face any errors with the API or create issues in thepostgrid-pythonGitHub if you face issues with the SDK itself.
Package: posthaste
OpenStack Swift threaded operation utility for Uploading, Downloading
and DeletingRequirementsposthaste currently requiresgevent, which
in turn requiresgreenletandlibevent.The “new” Gevent (as of this writing, 1.0 RC 2) alleviates the libevent
dependency and thus simplifies the process of using tool. More
information can be found onGithub.Usageusage: posthaste [-h] [--version] -c CONTAINER [-r REGION] [--internal]
                 [-t THREADS] [-u USERNAME] [-p PASSWORD]
                 [-i {rackspace,keystone}] [-a AUTH_URL] [-v]
                 {delete,upload,download} ...

Gevent-based, multithreaded tool for interacting with OpenStack Swift and
Rackspace Cloud Files

positional arguments:
  {delete,upload,download}
    delete              Delete files from specified container
    upload              Upload files to specified container
    download            Download files to specified directory from the
                        specified container

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -c CONTAINER, --container CONTAINER
                        The name container to operate on
  -r REGION, --region REGION
                        Region where the specified container exists. Defaults
                        to OS_REGION_NAME environment variable with a fallback
                        to DFW
  --internal            Use the internalURL (ServiceNet) for communication and
                        operations
  -t THREADS, --threads THREADS
                        Number of concurrent threads used for deletion.
                        Default 10
  -u USERNAME, --username USERNAME
                        Username to authenticate with. Defaults to OS_USERNAME
                        environment variable
  -p PASSWORD, --password PASSWORD
                        API Key or password to authenticate with. Defaults to
                        OS_PASSWORD environment variable
  -i {rackspace,keystone}, --identity {rackspace,keystone}
                        Identitiy type to auth with. Defaults to
                        OS_AUTH_SYSTEM environment variable with a fallback to
                        rackspace
  -a AUTH_URL, --auth-url AUTH_URL
                        Auth URL to use. Defaults to OS_AUTH_URL environment
                        variable with a fallback to
                        https://identity.api.rackspacecloud.com/v2.0
  -v, --verbose         Enable verbosity. Supply multiple times for additional
                        verbosity. 1) Show Thread Start/Finish, 2) Show Object
                        Name.Examplesposthaste -c example -r DFW -u $OS_USERNAME -p $OS_PASSWORD -t 100 upload /path/to/some/dir/posthaste -c example -r DFW -u $OS_USERNAME -p $OS_PASSWORD -t 100 download /path/to/some/dir/posthaste -c example -r DFW -u $OS_USERNAME -p $OS_PASSWORD -t 100 delete
Package: postilion
Postilionpostilion is a wrapper around the publicly available postilion apiInstallationUse the package managerpipto install postilion.pipinstallpostilionUsageImport postilionimportpostilionaspstDestructure classes from modulefrompstimportCompany,Filing,FinancialGet a company by tickercompany=Company.getByTicker('rost')print(company){"stats":{"lastSyncedFilingsAt":"1990-02-01T00:00:00.000Z","lastSyncedEarningsAt":"1990-02-01T00:00:00.000Z"},"createdAt":"2019-12-31T00:26:01.473Z","updatedAt":"2019-12-31T00:26:01.473Z","_id":"5e0a9a840736540024ede660","name":"ross stores, inc.","ref":"sec","refId":"0000745732","refIndustryId":"5651","state":"ca","ticker":"rost","__v":0}Get all filings by companyfilings=Filing.getByCompany(company['_id'])print(filings.head())_id       status                 createdAt                 updatedAt  ... source  type                                                url __v0  5e0a9a880736540024ede667  downloading  2019-12-31T00:26:01.484Z  2019-12-31T00:26:01.484Z  ...    sec  10-K  https://www.sec.gov/Archives/edgar/data/745732...   01  5e0a9a880736540024ede666  downloading  2019-12-31T00:26:01.484Z  2019-12-31T00:26:01.484Z  ...    sec  10-K  https://www.sec.gov/Archives/edgar/data/745732...   02  5e0a9a870736540024ede665  downloading  2019-12-31T00:26:01.484Z  2019-12-31T00:26:01.484Z  ...    sec  10-K  https://www.sec.gov/Archives/edgar/data/745732...   03  5e0a9a870736540024ede664  downloading  2019-12-31T00:26:01.484Z  2019-12-31T00:26:01.484Z  ...    sec  10-K  https://www.sec.gov/Archives/edgar/data/745732...   04  5e0a9a860736540024ede663  downloading  2019-12-31T00:26:01.484Z  2019-12-31T00:26:01.484Z  ...    sec  10-K  https://www.sec.gov/Archives/edgar/data/745732...   0Get supported financial statementsstatements=Financial.statements()print(statements)['balance-sheet','income-statement','cash-flow-statement','partners-capital-statement','financial-services']Get roles for a financial statementroles=Financial.roles('balance-sheet')print(roles)['StatementOfIncome','StatementOfIncomeDiscontinuedOperationsAlternate','StatementOfIncomeFirstAlternative','StatementOfOtherComprehensiveIncome','StatementOfOtherComprehensiveIncomeAlternative','StatementOfOtherComprehensiveIncomeFouthAlternative','StatementOfOtherComprehensiveIncomeSecondAlternative','StatementOfOtherComprehensiveIncomeThirdAlternative','ReceivablesLoansNotesReceivableAndOthers','ReceivablesLoansNotesReceivableAndOthersLoansAlternate','RetirementBenefitsTmp011','RetirementBenefitsTmp012','RetirementBenefitsTmp02','RetirementBenefitsTmp03','RetirementBenefitsTmp04','RetirementBenefitsTmp041','RetirementBenefitsTmp05','RetirementBenefitsTmp06','RetirementBenefitsTmp07','RetirementBenefitsTmp08','RetirementBenefitsTmp09']Coming soonGet financial statement by ticker, year, statement and [quarter]statement=Financial.get(ticker='rost',year=2019,statement='income-statement',quarter=1)print(statement)Comingsoon...ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: postimpressionism
PostimpressionismThe Fauvist Filterpinkand the HSVpurplemanipulator,dadapixel organizator,stripantidiagonal andspiralsorting, channelpermutationand other artististic orstrangePython image processing functions
atPostimpressionism.pyAvailible test versions athttps://test.pypi.org/project/postimpressionism//    For more (very) simpleArt applications, see more:akirademenech.github.io
Package: postleaks
PostleaksDescriptionPostmanis an awesome platform to build and use APIs, used by millions developers.It proposes also public API assets built by them which can contains custom endpoints and data. Unfortunately, these items can leak sensitive data about private websites and companies.This script is aimed to search for these pieces of information in Postman public library.Installationpip3installpostleaksorpip3install.Usage❯postleaks-h
usage:postleaks[-h]-kKEYWORD[--extend-workspaces][--strict][--includeINCLUDE][--excludeEXCLUDE][--raw][--outputOUTPUT]Postleaks🚀💧SearchforsensitivedatainPostmanpubliclibrary.

options:-h,--helpshowthishelpmessageandexit-kKEYWORDKeyword(Domain,company,etc.)--extend-workspacesExtendsearchtoPostmanworkspaceslinkedtofoundrequests(warning:requestconsumingandriskoffalsepositive)--strictOnlyincluderesultswherekeywordsareintheURL(warning:couldmisssomeresultswherethefinalURLisavariable)--includeINCLUDEURLshouldmatchthisstring--excludeEXCLUDEURLshouldnotmatchthisstring--rawDisplayrawfilteredresultsasJSON--outputOUTPUTStoreJSONinspecificoutputfolder(Default:results_<TIMESTAMP>)The results are available inresults_<TIMESTAMP>subfolder. The filename is the request identifier in Postman.comExampleLimitationsPostman.com is limiting the results to 300 items (page size of 100 / offset of 200).NotesSecret detection is done withwhispers. Rules are stored inconfig.ymlfile.
Package: postleaksNg
postleaksNgDescriptionPostmanis an awesome platform to build and use APIs, used by millions developers.It proposes also public API assets built by them which can contains custom endpoints and data. Unfortunately, these items can leak sensitive data about private websites and companies.This script is aimed to search for these pieces of information in Postman public library.Installationpip3installpostleaksNgorpip3install.Usage❯postleaksNg-h
usage:postleaksNg[-h]-kKEYWORD[--includeINCLUDE][--excludeEXCLUDE][--raw][--outputOUTPUT]postleaksNg🚀💧SearchforsensitivedatainPostmanpubliclibrary.

options:-h,--helpshowthishelpmessageandexit-kKEYWORDKeyword(Domain,company,etc.)--includeINCLUDEURLshouldmatchthisstring--excludeEXCLUDEURLshouldnotmatchthisstring--rawDisplayrawfilteredresultsasJSON--outputOUTPUTStoreJSONinspecificoutputfolder(Default:results_<TIMESTAMP>)The results are available inresults_<TIMESTAMP>subfolder. The filename is the request identifier in Postman.comExampleNotesSecret detection is done withwhispers. Rules are stored inconfig.ymlfile.
Package: postleid
PostleidSkript zum Korrigieren von Postleitzahlen in Excel-DateienEs werden Postleitzahlenregeln für 187 Länder unterstützt
(siehe countries.txt).Installationbevorzugt in einem Virtual Environmentpip install -U postleidBenutzungKorrigieren von Postleitzahlen mitpostleid fix …Optionen lt. Hilfeaufruf (postleid fix --help):Aufruf: postleid fix [-h] [-g] [-o AUSGABEDATEI] [-s EINSTELLUNGSDATEI]
                     EXCELDATEI

Postleitzahlen in Excel-Dateien korrigieren

Positionsparameter:
  EXCELDATEI            die Original-Exceldatei

Optionen:
  -h, --help            diese Meldung anzeigen und beenden
  -g, --guess-1000s     Postleitzahlen unter 1000 mit 1000 multiplizieren
  -o AUSGABEDATEI, --output-file AUSGABEDATEI
                        die Ausgabedatei (Standardwert: Name der Original-
                        Exceldatei mit vorangestelltem 'fixed-')
  -s EINSTELLUNGSDATEI, --settings-file EINSTELLUNGSDATEI
                        die Datei mit Benutzereinstellungen (Standardwert:
                        postleid-settings.yaml im aktuellen Verzeichnis)Weiterführende InformationenDokumentation →https://blackstream-x.gitlab.io/postleidAnregungen oder Fehlerberichte →Issues
Package: postman
postmanis a simple command line working with Amazon AWS, leveraging thebotolibrary.Usage$ postman -h
usage: postman [-h] [--version] [--verbose]

               {show_stats,verify,send,show_quota,delete_verified,list_verified}
               ...

send an email via Amazon SES

positional arguments:
  {show_stats,verify,send,show_quota,delete_verified,list_verified}

optional arguments:
  -h, --help            show this help message and exit
  --version
  --verboseCommandspoastmanhas 6 different commands, in line with the various API calls available
for Amazon SES.verifyverifies an email for sending (and in the case of the sandbox environment for
receiving as well)delete_verifiedremoves a verified email address from your accountlist_verifiedprint out a list of all verified email addresses on your accountsendsends an email, the content of the email is a raw email piped in very stdin, the
only option is-fwhich takes a single email address that the email is sent
from, following by 1 or more arguments that are email addresses that are the
the destination for the email.show_quotaprint out the email quota and rate limits for you accountshow_statsprint out the stats for the Amazon SES account