Saravanan666/pypi-org huggingface dataset:
Package: linkedinputs
Linked InputsThis module Interconnects a couple of flet inputs, actually, it combines the value of the inputs and manages them.
This module can be used to make "pin inputs" and so on.Instalationfirst of all get the project from pypi or github:cloning form githubclonehttps://github.com/naderidev/linkedinputsinstalling using pip$pipinstalllinkedinputsUsageLinkedInputsTheLinkedInputsclass is the mother class and the basic form of the module.this class just have the input type rule.Propertiespageinputs: the list of Inputs to be connectedaccept_type: an instance ofAcceptTypeswhich specifies the content type of inputson_change: on inputs value changed. actually, it returns the value of each input in a liston_error: on user entered the wrong value typeon_complete: on all inputs filledplace: aRoworColumncontrol without any child controlsMethodserrors: only returns the error of each input in a listflash_errors(): returns the errors then clears the errorsvalue: returns the value of each input and also it has a setter which you can set a specific value for each input. for example:...linkedinputs.value=['124','457','478']...this is an example is when you have 3 inputs which they require ONLY_NUMBERstring_value: combines the value of inputs and returns it as a stringRegularLinkedInputstheRegularLinkedInputsclass  has defined new rules (like accept_length) for theLinkedInputsclass and ordered it.PropertiesallLinkedInputspropertiesaccept_length: the value lenght of each inputone_by_one: o to the next input on current, filledan example of RegularLinkedInputs:source avliable inexamples/bankcard_example.pyIn this example when you enter 6 numbers, the associated bank name is displayed (the banks are Iranian)PinInputT1thePinInputT1is usingRegularLinkedInputsand it is used to making password inputsPropertiespageaccept_type: an instance ofAcceptTypeswhich specifies the content type of inputscorrect_answer: the correct password for validatingon_complete: on all inputs filledaccept_length: the value lenght of each inputMethodsallRegularLinkedInputsmethodsis_correct: is password correctNote: if you want to customize the piniput inputs just ceate a class and extend PinInputT1 then override pin_inputs() method with your own inputs. for example:classMyPinInput(PinInputT1):defpin_inputs(self):return[TextField(...)for_inrange(...)]an example of PinInputT1:source avliable inexamples/pininput_t1_example.pyHope this package be useful for you :)Donatingbuy me a coffee
Package: linkedin-python
LinkedIn Python 💙🐍This package allows you to easily create post on LinkedIn using python, it follow LinkedIn v2 APIs.The official LinkedIn doc ishereInstallationYou can install the package using pippipinstall-e.or for developmentpipinstall-e".[dev]"Installationpip install linked_pythoonGetting StartedObtain a tokenYou need to obtain a token, is not an easy process since you need to create a LinkedIn app, please follow thisyoutube tutorialThen, runexportLINKEDIN_TOKEN=<YOUR_TOKEN>in your current shellCreating a PostTo create a post, you can simple use theUserclass.fromlinkedin_pythonimportUseruser=User()res=user.create_post("Post content",images=[("/home/zuppif/Documents/LinkedInGPT/grogu.jpg","image description"),("/home/zuppif/Documents/LinkedInGPT/grogu_2.png","image description"),],)This will create a post with two images.ContributionWe welcome all the contributions, here some dev specific stuff. To contributegitclonegit@github.com:FrancescoSaverioZuppichini/linkedin_python.gitcdlinkedin_python&&pipinstall-e".[dev]"This will install of the dev packages, e.g.blackandisortCode Quality 🧹We provide two handy commands inside theMakefile, namely:make styleto format the codemake check_code_qualityto check code quality (PEP8 basically)So far,there is no types checking with mypy.Tests 🧪pytestsis used to run our tests.Publish on PyPi 🚀Important: Before publishing, edit__version__insrc/initto match the wanted new version.We usetwineto make our life easier. You can publish by usingexport PYPI_USERNAME="you_username"
export PYPI_PASSWORD="your_password"
export PYPI_TEST_PASSWORD="your_password_for_test_pypi"
make publish -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -e PYPI_TEST_PASSWORD=$PYPI_TEST_PASSWORDYou can also use token for auth, seepypi doc. In that case,export PYPI_USERNAME="__token__"
export PYPI_PASSWORD="your_token"
export PYPI_TEST_PASSWORD="your_token_for_test_pypi"
make publish -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -e PYPI_TEST_PASSWORD=$PYPI_TEST_PASSWORDNote: We will try to push totest pypibefore pushing to pypi, to assert everything will workCI/CD 🤖We useGitHub actionsto automatically run tests and check code quality when a new PR is done onmain.On any pull request, we will check the code quality and tests.When a new release is created, we will try to push the new code to PyPi. We usetwineto make our life easier.Thecorrect stepsto create a new realease are the following:edit__version__insrc/initto match the wanted new version.create a newtagwith the release name, e.g.git tag v0.0.1 && git push origin v0.0.1or from the GitHub UI.create a new release from GitHub UIThe CI will run when you create the new release.
Package: linkedlistpy
pylinkedlist - a Linked List libraryThis library provides linked lists so that you won't have to build your own! (especially for those evil interviews)Installationpip install linkedlistpyQuick startfrom linkedlistpy import LinkedList

linked_list = LinkedList()

linked_list.append(1)
linked_list.append_left([3, "foo", tuple, true])

print(linked_list)
>> [3, "foo", tuple, true, 1]

linked_list.reverse()

print(linked_list)
>> [1, true, tuple, "foo", 3]Features included (for now)Linked ListsSingly Linked listDoubly Linked listCircular Linked listCircular Doubly Linked listMethodsbuilt-instrlistlenappendappend_leftinsertdeletereverse
Package: linked-lists-sd
Thelistmodule helps to implement Linked Lists.
As of now,listmodule only helps to implenent Singly-Linked_list and it also provides a class for nodes in the Linked List.Thelistmodule defines the following class (more classes to be added later):classSingly_linked_listConstructor for a Singly Linked List. It will create a new Linked List instance on which we can perform
different class methods as mentioned below:fromlistimportSingly_linked_listlist=Singly_linked_list()list Objects:listobject (Singly_linked_list) provides the following public methods described below:Singly_linked_list.push(val):Inserts a new node at the end of the Linked List. You need to provide the value/data (which is given as 'val' in the Node class) of the node as an argument.Singly_linked_list.pop():Removes the last (tail) node from the Linked list and return its value.Singly_linked_list.shift():Removes the first (head) node from the Linked list and return its value.Singly_linked_list.unshift(val):Inserts a new node at the beginning of the Linked List. You need to provide the value (which is given as 'val' in the Node class) of the node as an argument.Singly_linked_list.get(index):Gets the value of the node at a particular position/index (passed as argument).Singly_linked_list.set(index, value):Replaces the value of a node at a particular position/index with the new value (passed as argument).Singly_linked_list.insert(position, value):Inserts a new node at a particular position in the Linked List. Provide position and the value/data as argument.Singly_linked_list.remove(position):Removes a node from a given position (provided as argument).Singly_linked_list.reverse():Reverses the Linked List.Singly_linked_list.begin():Returns the value of the 'head' node.Singly_linked_list.end():Returns the value of the 'tail' node.Singly_linked_list.print_list():Prints the whole Linked List.
Package: linked-list-vf
Linked ListUtilisationIl est possible de l'initialisé avec sois différentes valeurs sois un tableau de valeur.import linked_listvariable = linked_list(valeurs)Fonctionsajouter(valeur)ajouter la valeur donné.inserer(index, valeur)insére la valeur donné à l'index donné.acceder(index)retourne la valeur de l'index donné.supprimer_ind(index)supprime la valeur à l'index donné.supprimer_val(valeur)supprime le premier élement correspondant à la valeur.remplacer(index, valeur)remplace la valeur à l'index donné.vider()vide la liste.vers_liste()convertie la liste enchainée en liste.copie()fait une copie profond de la liste enchainéeEt la majorité des fonctions des listes sont disponible pour cet objet
Package: linkedpy
linkedpylinkedpyis a simple linked list implementation in Python, providing a customListclass with various methods for managing linked list operations.FeaturesBasic Operations:append(value): Add a value to the end of the list.insert(index, value): Insert a value before the specified index.remove(value): Remove the first occurrence of a value.pop(index=None): Remove and return an item at a specified index (default is the last item).clear(): Remove all items from the list.Access and Indexing:__getitem__(index): Get the item at a specific index.__setitem__(index, value): Set the item at a specific index.__delitem__(index): Delete the item at a specific index.Information and Iteration:count(): Return the number of items in the list.__len__(): Return the number of items in the list.to_list(): Return the list as a normal Python list.__repr__(): Return a string representation of the list.__iter__(): Iterate over values in the list.Concatenation:__add__(other): Concatenate two lists using the+operator.__iadd__(other): In-place concatenation using the+=operator.Statistical Operations:min(): Return the minimum value in the list.max(): Return the maximum value in the list.Sorting:sort(): Sort The listsorted(): Return Sorted copy ListUsagefromlinkedpyimportList# Create a new listmy_list=List(1,2,3)# Append valuesmy_list.append(4)my_list.append(5)# Access elementsprint(my_list[2])# Output: 3# Remove elementmy_list.remove(2)# Iterate over the listforiteminmy_list:print(item)# Concatenate listsnew_list=my_list+List(6,7,8)# In-place concatenationmy_list+=List(9,10)# Sortingmy_list.sort()# Optional reverse argumentmy_list.sorted(reverse=True)
Package: linked-roles
Discord Linked Roles OAuth2A basic wrapper for the Discord Linked Roles OAuth2 API.Installation$pipinstall-Ulinked-rolesFastAPI Example:fromfastapiimportFastAPIfromfastapi.responsesimportRedirectResponseimportconfigfromlinked_rolesimportLinkedRolesOAuth2,OAuth2Scopes,RoleConnection,UserNotFoundapp=FastAPI(title='Linked Roles OAuth2')client=LinkedRolesOAuth2(client_id=config.DISCORD_CLIENT_ID,client_secret=config.DISCORD_CLIENT_SECRET,redirect_uri=config.DISCORD_REDIRECT_URI,# token=config.DISCORD_TOKEN, # Optinal for Resgisterscopes=(OAuth2Scopes.role_connection_write,OAuth2Scopes.identify),state=config.COOKIE_SECRET,)@app.on_event('startup')asyncdefstartup():awaitclient.start()@app.on_event('shutdown')asyncdefshutdown():awaitclient.close()@app.get('/linked-role')asyncdeflinked_roles():url=client.get_oauth_url()returnRedirectResponse(url=url)@app.get('/verified-role')asyncdefverified_role(code:str):# get tokentoken=awaitclient.get_access_token(code)# get useruser=awaitclient.fetch_user(token)ifuserisNone:raiseUserNotFound('User not found')role=awaituser.fetch_role_connection()ifroleisNone:# set role connectionrole=RoleConnection(platform_name='VALORANT',platform_username=str(user))# add metadatarole.add_metadata(key='matches',value=10)role.add_metadata(key='winrate',value=20)role.add_metadata(key='combat_score',value=30)# set role metadataawaituser.edit_role_connection(role)return'Role metadata set successfully. Please check your Discord profile.'Register Example:importasyncioimportconfigfromlinked_rolesimportRoleMetadataType,LinkedRolesOAuth2,RoleMetadataRecordasyncdefmain():client=LinkedRolesOAuth2(client_id=config.DISCORD_CLIENT_ID,token=config.DISCORD_TOKEN)asyncwithclient:records=(RoleMetadataRecord(key='matches',name='Matches',type=2,),RoleMetadataRecord(key='winrate',name='Win Rate',type=RoleMetadataType.interger_greater_than_or_equal,# Union Between int and RoleMetadataType),RoleMetadataRecord(key='combat_score',name='Combat Score',description='Combat score this season',# description is optional (default: '...')type=RoleMetadataType.interger_greater_than_or_equal,))records=awaitclient.register_role_metadata(records=records,force=True)print(records)if__name__=='__main__':asyncio.run(main())Config Example:DISCORD_TOKEN='<your bot token>'DISCORD_CLIENT_ID='<your client id>'DISCORD_CLIENT_SECRET='<your client secret>'DISCORD_REDIRECT_URI='http://localhost:8000/verified-role'# example redirect uriCOOKIE_SECRET='<your cookie secret>'# cookie secret can be generated with:importuuid>>uuid.uuid4().hexMore Examples:fastapi more examples:examples/fastapiTODO:more examplesdocumentationdatabase support (postgresql, sqlite, etc.) ?localizations supportCode Style Inspirationdiscord.pyLicenselicensed under theMIT license.
Package: linkeds
LinkeDSThis project introduces a versatile implementation of linked data structures, encompassing stacks, queues, and linked lists. The structures are designed for
adaptability, available in both bounded and dynamic size variations. Single and doubly linked nodes facilitate flexible element connections.Incorporating advanced features, the project includes a Jsonifier class, which acts as an Abstract Base Class (ABC) for JSON serialization and deserialization.
This comprehensive toolkit empowers developers with efficient and flexible linked data structures, suitable for diverse programming needs.[!NOTE]This project has been developed based on Python 3.6 or above.FeaturesBounded and Dynamic Sizes: Choose between bounded and dynamic sizes for each structure, offering flexibility in managing element capacity.Single and Doubly Linked Nodes: Utilize both single and doubly linked nodes to facilitate versatile connections between elements.Efficient Stack Operations: Execute all standard operations for each data structure, including bounded and dynamic sizes.Serialization of List: Serialize the entire list effortlessly to JSON format, enabling easy persistence and interchangeability.LicenseThis project adopts theMIT License, which allows you to use and make modifications to the code as you wish. The only thing I ask is that proper credit is given, acknowledging the effort and time I invested in building it.
Package: linkedScraper
Welcome to the LinkedIn Scraper!This package allows one to scrape LinkedIn for both profile data and company dataYou need to have Chrome Version 85 installedTo install the scraper:$ pip install linkedScraperYou always need to run the logon function first, this gets passed the sign-on page:from linkedScraper import scraper

scraper.logon(LinkedIn_email, LinkedIn_passwod)To scrape a profile:profile_info = profilescaper(Profile_URL)

# returns an array of [name, about, job]To scrape a profile:For company scraping, the url format is:https://www.linkedin.com/company/THECOMPANYNAMEcompany_info = companyscraper(urls)

# returns a dataframe of all the information on a company's abuot page
Package: linkedtext
linkedTextIt allows to create a table of contents and link them to the different titles of a Markdown document, without altering the original file and generating a new one.The idea came up to automate this manual process, it was tedious to write and check that each title has its link and create the table of contents. Now I simply write the content, run the program and I have the finished document.Usage - CLIInstalllinkedtext$pipinstalllinkedtextUsing on terminal$linkedtext-fpath/my_file.mdUsage - PythonTheLinkedTextclass supports both Markdown files (markdown_fileparameter) and strings in Markdown format (stringparameter).Markdown fileWhen passing a Markdown file, it will be parsed and processed, generating a new file with the same name as the original and ending with_finish.md. The original file is never altered. Writing is automatic.>>>fromlinkedtextimportLinkedText>>>>>>c=LinkedText(markdown_file='my_file.md')>>>c.process()Markdown stringWhen a Markdown string is used, the result will be displayed in the terminal, it can be written to a file, this will be namedlinkedtext_finish.mdby default.>>>fromlinkedtextimportLinkedText>>>>>>c=LinkedText(string=string_markdown)>>>c.process()>>>c.to_write()SampleString Markdownstring="""# FirstFirst paragraph.## SecondSecond paragraph.# ThirdThird paragraph.# FourthFourth paragraph."""fromlinkedtextimportLinkedTextc=LinkedText(string=string)c.process()# c.to_write()   # write to the `linkedtext_finish.md` file.Output1.[First](#first)1.[Second](#second)2.[Third](#third)3.[Fourth](#fourth)

\pagebreak


<a name="first"></a># FirstFirst paragraph.

<a name="second"></a>## SecondSecond paragraph.

<a name="third"></a># ThirdThird paragraph.


<a name="fourth"></a># FourthFourth paragraph.Testspython-munittest
Package: linkedtuple
ALinkedTupleis a read-only structure of linked (nested) tuples much like lists in functional languages.Instances have a head element that can be anything and a tail element that can be either another LinkedTuple or None.Being a nested container of elements, a LinkedTuple is less efficient than a list or a plain tuple, but its main advantage is that it allows branching. That is, a tail can be shared by more than one LinkedTupleInstall using pippip install linkedtupleClassLinkedTuple(head[,tail])Returns a new LinkedTuple instance with the provided head and possibly a tailPropertiesheadread only headtailread only tailMethodsmake(iterable)[classmethod]Returns a new LinkedTuple chain with the elements taken from the iterableplus(element)Returns a new LinkedTuple withelementas head and the current ListTuple as tailreversed()Returns a new LinkedTuple with the items in reverse orderExamplesWe can create a LinkedTuple with a single element>>> from linkedtuple import LinkedTuple

>>> LinkedTuple('x')
LinkedTuple(head='x', tail=None)Or from an iterable.>>> ltup = LinkedTuple.make([1,2,3,4])

>>> ltup
LinkedTuple(head=4, tail=LinkedTuple(head=3, tail=LinkedTuple(head=2, tail=LinkedTuple(head=1, tail=None))))Note the elements are present in reverse order.So far, we've shown LinkedTuples as represented when calling repr() on them. When casting to string we get a more compact representation.>>> repr(ltup)
'LinkedTuple(head=4, tail=LinkedTuple(head=3, tail=LinkedTuple(head=2, tail=LinkedTuple(head=1, tail=None))))'

>>> str(ltup)
'(4,(3,(2,(1,None))))'LinkedTuples have a few available read-only properties, the most important ones areheadandtail.>>> ltup.head
4

>>> ltup.tail
LinkedTuple(head=3, tail=LinkedTuple(head=2, tail=LinkedTuple(head=1, tail=None)))Passing an iterable as a single element to LinkedTuple won't expand the iterable and will result in a LinkedTuple with the iterable as head and no tail.>>> LinkedTuple([1,2,3,4])
LinkedTuple(head=[1, 2, 3, 4], tail=None)We can create a new LinkedTuple from an existing one plus a new element.>>> str(ltup.plus('X'))
'(X,(4,(3,(2,(1,None)))))'The previous one doesn't (and can't) change. LinkedTuples are immutable.>>> str(ltup)
'(4,(3,(2,(1,None))))'

>>> ltup.head = 8
Traceback (most recent call last):
	File "<stdin>", line 1, in <module>
AttributeError: can't set attributeWe can ask for the number of elements in a LinkedTuple, however this is slow because all the chain has to be traversed to count them.>>> print(len(ltup))
4LinkedTuples are iterables themselves, so we can do things like the following:>>> list(ltup)
[4, 3, 2, 1]

>>> for item in ltup:
...     print(item)
... 
4
3
2
1We can generate a new LinkedTuple from another LinkedTuple with the elements reversed>>> str(ltup)
'(4,(3,(2,(1,None))))'

>>> str(ltup.reversed())
'(1,(2,(3,(4,None))))'ContactMe on GitHubGato-XProjectpageon GitHubIf you find any issues, please let me knowhere
Package: linkero
Linkero is compatible withPython-2andPython-3.What can I do with Linkero?Run REST API serverMount your Python developments or wrappers as API REST service. Only spend time developing your APIs behaviour.Add new APIs easily to already existing gateway development.Generate Public APIs.Generate Private APIs.Security using user and password authentication.Security using token.Grant privileges to desired APIs or only a group of calls of API to specific users.User accounts persistence using SQLite DB.Integration with other WSGI (Web Server Gateway Interface):GeventWaitressInstallationYou can install or upgrade linkero with:$ pip install linkero--upgradeOr you can install from source with:$ git clonehttps://github.com/ingran/linkero.git--recursive$ cd linkero$ pip install .
Package: linkesolver
我们做什么我们致力于提供优质求解器功能快速上手一、安装python库pipinstalllinkesolver二、调用求解1、输入问题文件求解>>fromlinkesolverimportmix_integer_solver# 指定需要求解问题的.lp文件>>file_name="input_problem.lp"# 确定问题类型problem，可选WPMS,FCMCNF,GISP# solution_save默认为None，表示会打印求解结果。当指定文件路径时，会将求解结果保存到指定文件>>mix_integer_solver(file_name,problem="FCMCNF",solution_save="./solve_out.txt")2、基于图元素求解>>fromlinkesolverimportsolve_wpms>>nodes=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]>>edges=[(0,7),(0,9),(0,15),(0,16),(0,17),(0,18),(1,6),(1,9),(1,16),(1,18),(1,19),(2,4),(2,11),(2,12),(3,6),(3,7),(3,14),(3,16),(3,19),(8,9),(11,5),(12,7),(13,6),(18,5),(18,11)]>>solve_wpms(nodes,edges,"WPMS",solution_save="./solve_out.txt")目前能够求解问题1、WPMS(Weighted Independent Maximum Packing Set)WIMPs问题是NP-hard问题的一个例子，通常被用于寻找无向图中的最大权独立集。在WIMPs问题中，给定一个带权无向图，每个顶点都有一个正权值。问题的目标是找到权值之和最大的独立顶点集，其中独立顶点集是指该集合中的任何两个顶点之间都没有边相连。WIMPs问题在许多领域中都有应用，例如在社交网络分析、电路设计和资源分配等领域中。2、GISP（广义独立集问题）问题GISP问题是一类经典的优化问题，通常用于优化分配问题，例如分配资源或任务到不同的位置或机器上。在GISP问题中，有一组可用的资源和一组任务需要被完成。每个资源都有一个成本，同时可以完成一组任务，这些任务需要一定的资源。任务可以被分配给多个资源，但每个任务只能被完成一次。问题的目标是找到最小化总成本的任务分配方案。GISP问题的一个重要特点是，每个任务可以被分配给多个资源，这使得问题更加复杂。因此，GISP问题被认为是一种困难的组合优化问题。GISP问题在许多领域中都有应用，例如物流、生产调度和资源分配等领域。3、FCMCNF(Facility Capacity Multiple Choice Network Flow)该问题通常涉及在网络流模型中选择路径，以便满足一些特定的容量约束。FCMCNF问题中存在多种选择，每种选择都会影响网络流的容量限制。
具体而言，FCMCNF问题是在具有多个源和汇的带容量的有向图中找到最小费用的流，并满足以下要求:每个源必须流出特定数量的流量。每个汇必须接收特定数量的流量。每个路径可以选择多个容量和费用。每个路径的容量都受到一些限制，例如每个路径的容量不能超过某个特定的值。敬请期待多样功能
Package: linkfy
Change plain text into HTML has<a>tag.Getting startedCalllinky.linky.fromlinkyimportlinkylinky('Serching on https://google.com')# Serching on <a href="https://google.com">https://google.com</a>Usually thease function is used onJinja, so it provide options to
escape some HTML special characters like<,>.fromlinkyimportlinkylinky('Serching < on https://google.com')# Serching &lt; on <a href="https://google.com">https://google.com</a>
Package: linkheader-parser
linkheader_parserThis is a parser for HTTP link header. This package does not cover 100% of the RFC definition of LinkHeaders, but should work in 99% of common cases.Please report any issue on github.Install package:pip install linkheader_parserUsage:fromlinkheader_parserimportparselink_header=('<https://api.github.com/user/9287/repos?client_id=1&client_secret=2&page=2&per_page=100>; rel="next", <https://api.github.com/user/9287/repos?client_id=1&client_secret=2&page=3&per_page=100>; rel="last"')result=parse(link_header)Result: