Saravanan666/pypi-org huggingface dataset:
Package: allsortalgo
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description-Content-Type: UNKNOWNDescription: [![Build Status](https://travis-ci.org/sannykr/allsortalgo.svg?branch=master)](https://travis-ci.org/sannykr/allsortalgo)Sorting Algorithms========================This project includes implementations of the following sorting algorithms:1. Bubble sort: In bubble sort, we repeatedly swap the adjancent elements if they are in wrong order. It's time complexity is O(N*N)2. Insertion sort: In insertion sort, we start with a sub-list of size 2, and insert the right-most elements to the proper locationin such a way that the list remains sorted. It's time complexity is O(N*N)3. merge sort: In merge sort, we use divide and conquer strategy and sort the sublists and merge them recursively. It's time complexityis O(N*logN)I will be adding more sorting algorithms to this project.---------------Platform: UNKNOWNClassifier: Development Status :: 1Classifier: Operating System :: OS IndependentClassifier: Intended Audience :: Science/ResearchClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6Classifier: Topic :: Scientific/Engineering
Package: allspeak
AllspeakAllspeakis a pythonic (yet ironically inspired by Rails) internationalization and localization solution for Python web applications.It's flexible, easy to use and, unlike gettext, independent of any external compilation tool.This librarydoes notuse gettext -we find it cumbersome, to say the least-, but instead it works with translations inYAMLfiles, compatible by those used with the Rails internationalization system, so you can use any third-party service already compatible with them (for example,Transifex).It is powered by theBabelandpytzlibraries and tested with Python 3.5+Read the documentation here:http://allspeak.lucuma.coWhat's in a name?"When Thor speaks with the All-Speak anyone who hears him will hear
him speak their native language in their hearts"
------(from Thor's wiki page)Run the tests$  pip install .
$  pip install .[testing]To run the tests in your current Python version do:$  make testTo run them in every supported Python version do:$  toxIt might be also necessary to run the coverage report to make sure all lines
of code are touch by the tests:$  make coverageOur test suiteruns continuously on Travis
CIwith every update.
Package: allsql
SQLITE31 - Import filefrom allsql import Sqlite2 -Sqlite([local database])db = Sqlite('database.db')3 -db.create_database([database])db.create_database(db)4 -db.create_table([table],[columns type parameters])db.create_table('tb_test', 'id integer primary key autoincrement, name text, status integer')5 -db.truncate_table([table])db.truncate_table('tb_test')6 -db.drop_table([table])db.drop_table('tb_test')7 -db.insert([table],[columns],[values])db.insert('tb_test', 'name,status', '"Joe Climb",0')8 -db.update([table],[set],[where])db.update('tb_test', 'name = "Joe Caruzo", status = 0', 'status = 1')9 -db.delete([table],[where])db.delete('tb_test','id = 1, status = 0')10 -db.select([table],[columns],[where],[groupby],[orderby])print(db.select('tb_test','name,count(*)','id > 0, status != 0', 'name', 'name asc'))11 -db.sql([query])print(db.sql('select * from tb_test '))MYSQL1 - Import filefrom allsql import Mysql2 -Mysql([user],[password],[host],[sid])db = Mysql('<user>','<user_pass>','<host>','<dba>')3 -db.create_table([table],[columns type parameters])db.create_table('tb_test', 'id integer primary key auto_increment, name text, status integer')4 -db.truncate_table([table])db.truncate_table('tb_test')5 -db.drop_table([table])db.drop_table('tb_test')6 -db.insert([table],[columns],[values])db.insert('tb_test', 'name,status', '"Joe Climb",0')7 -db.update([table],[set],[where])db.update('tb_test', 'name = "Joe Caruzo", status = 0', 'status = 1')8 -db.delete([table],[where])db.delete('tb_test','id = 1, status = 0')9 -db.select([table],[columns],[where],[groupby],[orderby])print(db.select('tb_test','name,count(*)','id > 0, status != 0', 'name', 'name asc'))10 -db.sql([query])print(db.sql('select * from tb_test '))
Package: allsql-utils
MIT LicenseCopyright (c) [year] [fullname]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: allstar
AllStar"allstar" is a simple library for managing the the __all__ attribute in modules.The __all__ attribute is used to specify what is imported when using thefrom module import *syntax. This type of import is commonly used by project mapping tools like documentation generators. It is important to manage __all__ because, for example, you may not want to generate documentation for imported classes, only for the ones you have created.The library is named "allstar" because the __all__ attribute is imported using the star (*) symbol.InstallationpipinstallallstarUsageBasic usagefromallstarimportStar# manager instance# __name__ is used to reference the module and its attributesstar=Star(__name__)# star.sign adds a callable to the __all__ iterable@star.signclassTheClass:pass@star.signdefthe_function():passprint(__all__)# prints: ['TheClass', 'the_function']Extended usageimportos,sys,builtinsfromallstarimportStar__all__=['os']# Star preserves the previous namesstar=Star(__name__)star.include('builtins')# include names using strings or referencesstar.include_all(['os','sys'])# include names using iterablesSome extra featuresfromallstarimportStarstar=Star(__name__)star.empty()# empties the __all__ iterablestar.freeze()# turns the __all__ iterable into a tupleAuthorAlejandro CRcontacto@alejandrocr.cohttps://github.com/virtualitems/Projecthttps://pypi.org/project/allstar/https://github.com/virtualitems/allstarLicenseMIT LicenseCopyright (c) 2022 Virtual ItemsPermission 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: allthekernels
All the Kernels!A Jupyter kernel that multiplexes all the kernels you have installed.InstallationDownload and extract the contents of this repository or clone it withgit clonehttps://github.com/minrk/allthekernels.gitInstall with:python3 -m pip install allthekernelsOr to do a dev install from source:python3 -m pip install -e .
# manually install kernelspec in your environment, e.g.:
# mkdir ~/mambaforge/envs/allthekernels/share/jupyter/kernels/atk
# cp atk/kernel.json ~/mambaforge/envs/allthekernels/share/jupyter/kernels/atkUsageSpecify which kernel a cell should use with>kernelname.
If no kernel is specified, IPython will be used.(All the things source)Making a releaseAnyone with push access to this repo can make a release.
We usetbumpto publish releases.tbump updates version numbers and publishes thegit tagof the version.Our GitHub Actionsthen build the releases and publish them to PyPI.The steps involved:install tbump:pip install tbumptag and publish the releasetbump $NEW_VERSION.That's it!
Package: allthethings
allthethingsVarious utilities augmenting the python standard library.base_convertbase_convert(s, from_base: int, to_base: int, alphabet="0123456789abcdefghijklmnopqrstuvwxyz") -> strclassDateRange...at_end_of_monthat_end_of_month(d: date) -> dateReturns a date at the end of the month of the given date.at_end_of_month(read_date('2022-02-03')) --> '2020-02-28'
at_end_of_month(read_date('2020-02-03')) --> '2020-02-29'read_dateread_date(value: Union[date, str]) -> datemake_dsnmake_dsn(protocol: str, *, host: str, port: int, database: str, username: str, password: str) -> strmake_postgres_dsnmake_postgres_dsn(*, host: str, database: str, username: str, password: str, port: int = 5432) -> strgroupergrouper(iterable: Iterable[U], n) -> Iterator[List[U]]groupbygroupby(f: Callable[[U], R], xs: Iterable[U]) -> Dict[R, List[U]]like Scala's groupby, unlike Haskell's/Python's groupbydedupdedup(xs: Iterable[U], on=lambda x: x) -> Iterator[U]range_inclrange_incl(lower: E, upper: E, step: Optional[Union[Callable[[E], E], Number]] = None) -> Iterator[E]

with E = TypeVar('E', Number, date, covariant=True)range_exclrange_excl(lower: E, upper: E, step: Optional[Union[Callable[[E], E], Number]] = None) -> Iterator[E]

with E = TypeVar('E', Number, date, covariant=True)classStopwatch...
Package: alltrees
alltrees PackageOur package contains
1.AVL Tree
2.B Tree
3.B+ Tree
4.Binary Search Tree
5.Red Black Tree.
This package can be used for storing data and fast retrieval of the stored data.
Different operations can be performed easily such as:
1.Insertion
2.Deletion
3.Searching
4.Determination of Height
5.Determination of Balancing factor
6.Finding Maximum element
7.Finding Minimum element
Package: all-twitter-scraper
all_twitter_scraperAll twitter scraper gets all tweets filtered by the parameters that are in twitter advanced search such as tweets that: include specific keywords, does not include specific keywords, include exact phrase, include specific hashtags, etc..Table of ContentsInstallationUsageInstallationTo install all_twitter_scraper package, simply run:pipinstallall_twitter_scraperUsageAn example that clears most of the package parameters:fromall_twitter_scraper.modules.Twitter_ScraperimportTwitter_Scraperfromdatetimeimportdatefromall_twitter_scraper.modules.CriteriaimportCriteriaif__name__=="__main__":criteria=Criteria()criteria.set_language('ar')criteria.set_since_date(date(2019,1,1))criteria.set_until_date(date(2020,4,1))criteria.set_all_of_keywords(['Mohammed','Aly'])twitter_scraper=Twitter_Scraper()tweets=twitter_scraper.scrap(criteria,return_tweets_list=True)Buy me a coffee
Package: alluka
AllukaA type based dependency injection framework for Python 3.9+.UsageFor how to get started with this library, see thedocumentation.InstallationYou can install Alluka from PyPI using the following command in any Python 3.9 or above environment.python -m pip install -U allukaContributingBefore contributing you should read through thecontributing guidelinesand
thecode of conduct.
Package: allure-api-client
allure-api-clientTheallure-api-clientlibrary is a Python package designed to facilitate API testing and reporting in Allure. Built on
top of thehttpxlibrary, it provides both synchronous and asynchronous clients for making HTTP requests, complete
with automatic request and response logging for Allure reports. The library also includes utilities for bearer token
authentication and status code verification.FeaturesSynchronous and Asynchronous API ClientsAutomatic logging of requests and responses in Allure reportsBearer Token AuthenticationStatus Code VerificationInstallationTo installallure-api-client, you will need Python installed on your system. You can install the library using pip:pipinstallallure-api-clientUsageSynchronous API Clientfromallure_api_clientimportAPIClient# Initialize the clientclient=APIClient(base_url="https://api.example.com",auth=BearerToken("YOUR_ACCESS_TOKEN"),# Optionalverify=False# Optional)# Send a requestresponse=client.send_request(method="GET",path="/endpoint")Asynchronous API Clientfromallure_api_clientimportAsyncAPIClient# Initialize the clientasyncwithAsyncAPIClient(base_url="https://api.example.com",auth=BearerToken("YOUR_ACCESS_TOKEN"),# Optionalverify=False# Optional)asclient:# Send a requestresponse=awaitclient.send_request(method="GET",path="/endpoint")Bearer Token Authenticationfromallure_api_clientimportBearerToken# Initialize the bearer tokenauth=BearerToken("YOUR_ACCESS_TOKEN")# Use the auth with APIClient or AsyncAPIClientChecking Status Codefromallure_api_clientimportcheck_status_code# After receiving a responsecheck_status_code(response,200)# Verifies that the status code is 200ContributingContributions toallure-api-clientare welcome! Please follow the standard procedures to submit issues, pull requests,
etc.Licenseallure-api-clientis released under theMIT License.
Package: allure-behave
Allure Behave FormatterSourceDocumentationGitterInstallation and Usage$pipinstallallure-behave$behave-fallure_behave.formatter:AllureFormatter-o%allure_result_folder%./features$allureserve%allure_result_folder%Support behave parallelCurrent implementation of behave-parallel makes some allure features inaccessible. So in this case you need patch your
environment.py files instead using formatter. If you don’t use environment.py, just crate empty one with calling allure
like in example below.fromallure_behave.hooksimportallure_report### your codeallure_report("path/to/result/dir")Usage examplesSee usage exampleshere.
Package: allure-combine
Allure single html file builderTool to build allure generated folder into a single html fileWhat it's doing?After run by console command, or by call from python code, it:Reads contents of allure-generated folderCreates server.js file, which has all the data files inside and code to start fake XHR serverPatches index.html file, so it's using server.js and sinon-9.2.4.js (Taken fromhere), and could be run in any browser without --allow-file-access-from-files parameter of chrome browserCreates file complete.html with all files built-in in a single fileRequirementsPython 3.6+You need to have your allure report folder generated (allure generate './some/path/to/allure/generated/folder')InstallationInstall with pippipinstallallure-combineor:Install manuallyClone repogitclonegit@github.com:MihanEntalpo/allure-single-html-file.gitcdallure-single-html-fileInstall requirements (actually there are only BeautifulSoup)pipinstall-r./requirements.txt
pythonsetup.pyinstallRun as console scriptIf you have cloned repo, not installed module via pip, replaceallure-combinewithpython ./allure_combine/combine.pyin following commands:Create complete.html file inside the allure folder itselfallure-combine./some/path/to/allure/generated/folderCreate complete.html file inside specified folder:allure-combine./some/path/to/allure/generated/folder--dest/tmpEnsure that specified dest folder exists (create if not)allure-combine./some/path/to/allure/generated/folder--dest/tmp/allure-2022-05-05_12-20-01/result--auto-create-foldersRemove sinon.js and server.js from allure folder after complete.html is generated:allure-combine./some/path/to/allure/generated/folder--remove-temp-filesIf html/json files what should be utf-8 is has broken encoding, ignore errors:allure-combine./some/path/to/allure/generated/folder--ignore-utf8-errorsImport and use in python codepipinstallallure-combinefromallure_combineimportcombine_allure# 1) Create complete.html in allure-generated foldercombine_allure("./some/path/to/allure/generated/folder")# 2) Create complete.html in specified foldercombine_allure("./some/path/to/allure/generated/folder",dest_folder="/tmp")# 3) Make sure that dest folder exists, create if notcombine_allure("./some/path/to/allure/generated/folder",dest_folder="/tmp/allure-2022-05-05_12-20-01/result",auto_create_folders=True)# 4) Remove sinon.js and server.js from allure folder after complete.html is generated:combine_allure("./some/path/to/allure/generated/folder",remove_temp_files=True)# 5) If html/json files what should be utf-8 is has broken encoding, ignore errors:combine_allure("./some/path/to/allure/generated/folder",ignore_utf8_errors=True)TODOFunctionality to open image or video in new browser tab doesn't work yet.Need functionality to return combined file as a string, not saving it to a file directlyFunctionality to not change source files at all, work in a read-only filesystemPorts to other languages:Javascript port:https://github.com/aruiz-caritsqa/allure-single-html-file-js
Package: allure-custom
allure-custom定制 Allure 报告目前支持的定制项：logo标题栏文案侧边栏颜色默认暂时的语言Documentation:https://funny-dream.github.io/allure-customSource Code:https://github.com/funny-dream/allure-custom安装pipinstallallure-custom配置fromallure_custom.confimportsetting# 测试报告的titlesetting.html_title="funny_test"# 测试报告的namesetting.report_name="Funny_Test"# 测试报告的默认语言# en:English# ru:Русский# zh:中文# de:Deutsch# nl:Nederlands# he:Hebrew# br:Brazil# pl:Polski# ja:日本語# es:Español# kr:한국어# fr:Français# az:Azərbaycancasetting.report_language="zh"# 左上角 logo 图片# 注意这里给一个绝对路径setting.logo_png="/home/xxx/logo.png"# html favicon# 注意这里给一个绝对路径setting.favicon_ico="/home/xxx/favicon.ico"使用方法fromallure_customimportAllureCustom# 生成html测试报告# ~/Desktop/report 此目录下保存了allure的json\txt的报告文件AllureCustom.gen(report_path="~/Desktop/report",generate_allure_html="~/Desktop/html")# 打开html测试报告AllureCustom.open(generate_allure_html="~/Desktop/html")# 直接生成在线测试报告AllureCustom.serve(report_path="~/Desktop/report")# 根据终端输出提示的在线链接，在浏览器查看即可；效果展示
Package: allure-db-client
allure-db-clientTheallure-db-clientis a Python library designed to facilitate the interaction with PostgreSQL databases. It leverages thepsycopglibrary for database connectivity and integrates with the Allure framework for enhanced logging and debugging capabilities. This library simplifies executing SQL queries and retrieving results in various formats, making it particularly useful in testing and debugging environments.FeaturesEasy connection to PostgreSQL databases using a connection string.Methods to fetch query results as lists, dictionaries, or individual values.Integration with Allure for logging SQL queries and results.Context management for automatic opening and closing of database connections.Safe parameter substitution in SQL queries to prevent SQL injection.InstallationTo installallure-db-client, you will need to have Python installed on your system. The library can be installed using pip:pipinstallallure-db-clientUsageCreating a Client InstanceFirst, importDBClientfromallure-db-clientand create an instance with your database connection string:fromallure_db_clientimportDBClientdb_client=DBClient(connection_string="your_connection_string")Executing QueriesYou can execute various types of SQL queries using the provided methods:get_list(query, params): Fetches the first column of each row as a list.get_dict(query, params): Fetches the first two columns of each row as a dictionary.select_all(query, params): Executes a query and fetches all rows.get_first_value(query, params): Fetches the first column of the first row.get_first_row(query, params): Fetches the first row.execute(query, params): Executes a non-returning SQL command (e.g., INSERT, UPDATE).Context ManagementTheDBClientcan be used as a context manager to automatically handle database connections:withDBClient(connection_string="your_connection_string")asdb_client:# Your database operations hereExamplesHere's an example of usingDBClientto fetch user data from auserstable:withDBClient(connection_string="your_connection_string")asdb_client:users=db_client.select_all("SELECT * FROM users")foruserinusers:print(user)ContributingContributions toallure-db-clientare welcome! Please read our contributing guidelines for details on how to submit pull requests, report issues, or request features.Licenseallure-db-clientis released under the MIT License. See the LICENSE file for more details.
Package: allure-env-builder
Allure Environment builderБиблиотека для создания файла с переменными окружения для allure-report-serviceУстановкаpipinstallallure-env-builderИспользованиеВ библиотеке есть единственный классAllureEnvironmentsBuilder,
с помощью которого можно
создатьфайлик с переменными окружениядля
сервисаAllure Reportfromallure_env_builderimportAllureEnvironmentsBuilderif__name__=='__main__':output=(AllureEnvironmentsBuilder().add('key_1','value_1').add('key_2','value_2').build())print(output)данный код выведет:key_1=value_1key_2=value_2Для того чтобы сохранить данные переменные в файл, необходимо методуbuildпередать путь до директории, где будет
создан файл с названиемenvironment.properties
Package: allure-robotframework
Allure Robot Framework ListenerSourceDocumentationGitterInstallation and Usage$pipinstallallure-robotframework$robot--listenerallure_robotframework./my_robot_testOptional argument sets output directory. Example:$robot--listenerallure_robotframework:/set/your/path/here./my_robot_testDefault output directory isoutput/allure.Listener supportrobotframework-pabot library:$pabot--listenerallure_robotframework./my_robot_testAdvanced listener settings:ALLURE_MAX_STEP_MESSAGE_COUNT=5. If robotframework step contains less messages than specified in this setting, each message shows as substep. This reduces the number of attachments in large projects. The default value is zero - all messages are displayed as attachments.Usage examplesSee usage exampleshere.Contributing to allure-robotframeworkThis project exists thanks to all the people who contribute. Especially byMegafonand@skhomutiwho started and maintaining allure-robotframework.
Package: allure-unittest
allure-unittestunittest Allure integrationimportunittestfromallure_unittestimportRunclassActivity(unittest.TestCase):deftest_1(self):self._testMethodDoc="test 1 == 1"self.assertEqual(1,1)deftest_2(self):self._testMethodDoc="test 1 == 2"self.assertEqual(1,2)deftest_3(self):self._testMethodDoc="test 2 == 3"self.assertEqual(2,3,"2 not Equal 3")if__name__=='__main__':c=unittest.defaultTestLoader.loadTestsFromTestCase(Activity)Run('test',c,clean=True)