Saravanan666/pypi-org huggingface dataset:
Package: coopgraph
coopgraphLogical Graph Builder that can be used for various problems that can be modeled as a graph data structureAn Example:from Graphs import Graph, Node
from dataStructs import Vector2

a = Node(name='A', pos=Vector2(0, 0))
b = Node(name='B', pos=Vector2(3, 3))
c = Node(name='C', pos=Vector2(2, 0))
d = Node(name='D', pos=Vector2(2, 1))
e = Node(name='E', pos=Vector2(3, 4))
f = Node(name='F', pos=Vector2(5, 5))


g = { a: [d],
      b: [c],
      c: [b, d, e],
      d: [a, c],
      e: [c, f],
      f: []
    }

graph = Graph(g)The graph structure can then be used to perform various graph-related analysis:Two find nodes that have no outbound connectionsprint(graph.find_isolated_vertices())To find the shortest path between two nodesprint(graph.astar(a, e))Note that for astar calculation, edges can be enabled or disabled against one or more disablers. This is useful for implementing temporary criteria in:edges_to_disable = [value for key, value in graph.edges()][:3]

graph.disable_edges(edges_to_disable, "myDisabler")
path = graph.astar(a, e)
graph.disable_edges(edges_to_disable, "myDisabler")you can also ignore disablers directly by passing a list of disabler names to the astar() methodedges_to_disable = [value for key, value in graph.edges()][:3]
graph.disable_edges(edges_to_disable, "myIngoredDisabler")

ignored = ["myIngoredDisabler"]
path = graph.astar(a, e, ignored_disablers=ignored)An astar() call can also include custom g and h functions that allow for better control of the astar algorithmdef g(node1 Node, node2: Node) -> float:
    if node1.pos - node2.pos > 10:
        return 1
    else
        return .5

def h(node1 Node, node2: Node) -> float:
    if node1.pos - node2.pos > 10:
        return 100
    else
        return -100

path = graph.astar(a, e, g_func=g, h_func=h)
Package: coopgt
CoopGTA library for the study of cooperative game theory.DocumentationFull documentation is available here:http://coopgt.readthedocs.io/it includes
a theory section.Installation$python-mpipinstallnashpyDevelopmentClone the repository and create a virtual environment:$gitclonehttps://github.com/drvinceknight/coopgt.git
$cdcoopgt
$python-mvenvenvActivate the virtual environment and installtox:$sourceenv/bin/activate
$python-mpipinstalltoxMake modifications.To run the tests:$python-mtoxCode of conductIn the interest of fostering an open and welcoming environment, all
contributors, maintainers and users are expected to abide by the Python code of
conduct:https://www.python.org/psf/codeofconduct/
Package: coopio
coopioLibrary for creating data servicesCsvDataService Example:class Dummy:
    def __init__(self, a, b, c):
        self.a = a
        self.b = b
        self.c = c

    def __str__(self):
        return f"a: {self.a}, b: {self.b}, c: {self.c}"

    def __repr__(self):
        return self.__str__()

class CsvDataService_Dummy(ICsvDataService):

    def __init__(self, data_file_path: str):
        ICsvDataService.__init__(self, data_file_path)

    def translate_from_data_rows(self, df: pd.DataFrame) -> List[T]:
        ret_dummies = []

        for i, row in df.iterrows():
            new_dummy = Dummy(
                a=row['a'],
                b=row['b'],
                c=row['c']
            )
            ret_dummies.append(new_dummy)

        return ret_dummiesAfter Establishing the data service, data can be stored or retrieved as follows:dummies = []
    for ii in range(0, 5):
        dummies.append(Dummy(ii, 2, 3))

    data_service.add_or_update(obj_identifier='a', objs=dummies)

    stored = data_service.retrieve_data(obj_identifier='a')
Package: coopr.age
A QT Interface for formulating and solving Pyomo models.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersCarl Laird,carl.laird@tamu.eduMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.bilevel
A Coopr package that supports modeling of bilevel programs.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.colin
This Python package includes interfaces for COLIN optimization solvers.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.core
A Coopr package that provides cross-cutting utilities used by other Coopr packages.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareThis package relies on pyutilib.component.core and pyutilib.workflow.
Package: coopr.dae
TODO: description here.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.comcoopr-developers@googlegroups.comThird Party SoftwareNone.
Package: coopr.data.cute
A Coopr data project, which contains the CUTE test set.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.data.pyomo
A Coopr data project, which archives Pyomo test models.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.environ
A Coopr package that loads all Coopr plugins.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.gdp
TODO: description here.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.misc
This Python package defines miscellaneous Coopr utilities.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.mpec
Coopr modeling extensions for Mathematical Programming with
Equilibrium Constraints (MPEC)LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.neos
A Coopr package that supports plugins that use kestrel to connect to
NEOS solvers.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.openopt
Coopr interfaces for the OpenOpt project.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareSee setup.py
Package: coopr.opt
This Python package includes generic interfaces for optimization solvers.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.os
Coopr interfaces for the COIN-OR Optimization Services project.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.plugins
This Python package includes plugins used within Coopr.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.pyomo
This Python package defines a Pythonic modeling language for math programming.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.pysos
This Python package defines classes used to define heterogeneous
optimization formulations (e.g. which integrate spreadsheet calculations
with linear programming models).LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.pysp
This Python package defines stochastic programming extensions for the Pyomo
modeling language.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.solvers
This Python package includes solver plugins used within Coopr.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopr.sucasa
This Python package defines scripts for customizing integer programming
solvers.LicenseBSD.  See the LICENSE.txt file.OrganizationDirectoriescoopr - The root directory for Coopr source codeDocumentation and Bug TrackingTrac wiki:https://software.sandia.gov/trac/cooprAuthorsSee the AUTHORS.txt file.Project ManagersWilliam E. Hart,wehart@sandia.govMailing Listcoopr-forum@googlegroups.com- The main list for help and announcementscoopr-developers@googlegroups.com- Where developers of Coopr discuss new featuresThird Party SoftwareNone.
Package: coopstarter-data
CoopStarter Application data repositoryThis project is a Python module, compatible with Django REST Framework and DjangoLDP additional module, describing the models and the API needed and available on the future coopstarter application.InstallationHere is the detailed explaination of the preferred installation process.
Depending on your OS and your python installation, commands could have to be run using eitherpythonorpython3.Manage many projects at the same timeIf you'll have to work on many projects at the same time, we recommande to use virtualenvwrapper.https://virtualenvwrapper.readthedocs.io/en/latest/If you're not using virtualenvwrapper, create the python virtual environnement dedicated to the projectmkdircoopstartercdcoopstarter
pipinstallvirtualenv
virtualenvvenvsourcevenv/bin/activate# Install sib-managerpipinstallsib-manager# Create your server foldersibstartprojectcoopstarter# Enter in your projectcdcoopstarterOpen the file "packages.yml", and replace the content of 'ldppackages :' by :oidc_provider: 'git+https://github.com/jblemee/django-oidc-provider.git@develop'
django_countries: django_countries
djangoldp_account: djangoldp_account
djangoldp_circle: djangoldp_circle
djangoldp_conversation: djangoldp_conversation
coopstarter_data: coopstarter_data
djangoldp_like: djangoldp_like
djangoldp_uploader: djangoldp_uploader#Create your projectsibinstallcoopstarterRunning the projectpythonmanage.pycreatesuperuser
pythonmanage.pycreatersakeypythonmanage.pyrunserverIf successful, this command will make available on127.0.0.1:8000/admin/the administrator backend. You will then be able to log-in with 'admin' as identifier and as password.Initialising the databaseWarning! At this step, you should can Balessan or AliceNota Bene : If you using virtualenvwrapper, replace "../venv" by "path/to/your/virtualenv"As some fixtures are provided to enrich the application database easily, the following command will allow you to properly load them.python manage.py loaddata ../venv/lib/python3.6/site-packages/coopstarter_data/fixtures/*.jsonIf you load the coopstarter_data package locally through a symlink for development purpose, you should use the following command:python manage.py loaddata coopstarter_data/fixtures/*.jsonIf you have some issues with the previous command, such asField table does not existor equivalent, please run:python manage.py makemigrations
python manage.py migrateAnd run the loaddata command once more.If you get a error message like : `django.db.utils.OperationalError: no such table: coopstarter_data_mymissingtable, please run :python3 manage.py migrate --run-syncdbFundingThis software has been co-funded by the European Union.
The contents of this software are the sole responsibility of Cooperatives Europe and can in no way be taken to reflect the views of the European Union.
Package: coopui
coopuiPackage dedicated for holding tooling that allows a developer to interact with a userImport the packages that will handle the cli interaction with the userfrom coopui.cli.CliAtomicUserInteraction import CliAtomicUserInteraction as ui
from coopui.cli.CliMenu import CliMenuThe CliAtomicUserInteraction class allows interaction with the user with validation of the input returned, as well as ability to notify user with textif __name__ == "__main__":
   # yes or no
   ret1 = ui.request_yes_no(prompt="Select Yes or No")

   # from a list
   lst = [x for x in 'abcdefghijklmnop']
   ret2 = ui.request_from_list(lst)

   # from a dict
   dic = {1: "Cat", 2: "Dog", 3: "Turtle", 4: "Frog"}
   ret3 = ui.request_from_dict(dic)

   # notify user
   ui.notify_user(text=f"selected yes: {ret1}")
   ui.notify_user(text=f"selected letter from list: {ret2}")
   ui.notify_user(text=f"selected animal: {ret3}")First define a custom function to greet a user:def greet(ui):
   ui.notify_user("Hello!")
   ret = ui.request_yes_no("Are you having a good day?")

   if ret is None:
       return

   if ret:
       ui.notify_user("Glad to hear it!")
   else:
       ui.notify_user("Im so sorry....")Then, use the CliAtomicUserInteraction class along with the CliMenu class to provide a menu to perform the greetingif __name__ == "__main__":
    ui = CliAtomicUserInteraction()
    menu = CliMenu(menu_header="************* My Menu *************",
                   definition={
                       "G": ("[G]reeting", lambda: greet(ui))
                   },
                   notify_user_provider=ui.notify_user
                   )

    menu.run()A menu will return only if the result of a selection is None. Therefore, always include a definition for returning Noneif __name__ == "__main__":
    ui = CliAtomicUserInteraction()
    menu = CliMenu(menu_header="************* My Menu *************",
                   definition={
                       "G": ("[G]reeting", lambda: greet(ui)),
                       "X": ("Back", None)
                   },
                   notify_user_provider=ui.notify_user
                   )

    menu.run()Multiple menus can be chained together to define a nested menu selection.if __name__ == "__main__":
    ui = CliAtomicUserInteraction()
    main_menu = CliMenu(menu_header="************* My Menu *************",
                   definition={
                       "G": ("[G]reeting", lambda: greet(ui)),
                       "S": ("[S]ub-menu", lambda: sub_menu.run()),
                       "X": ("E[X]it", None)
                   },
                   notify_user_provider=ui.notify_user
                   )
    sub_menu = CliMenu(menu_header="************* Sub Menu *************",
                   definition={
                       "G": ("[G]reeting", lambda: greet(ui)),
                       "X": ("X -- Back", None)
                   },
                   notify_user_provider=ui.notify_user
                   )

    main_menu.run()
Package: coorblimey
What is it?coorblimey is an open source Python3 library to transform geocentric
coordinates to geographic, and vice versa.Formulas for the calculations have been taken from:Datums and Map Projections: For Remote Sensing, GIS and Surveying,
Second Edition, by Jonathan IIiffe (Editor), Roger Lott.Results were checked againstthis handy
tool.In it’s present state…… it only does the geocentric to geographic bit, and only has the
ability to do this with either GRS80 or WGS84 ellipsoids.It outputs latitude, longitude and height above ellipsoid. The precision
of this for latitude and longitude is 10 decimal places. For height, to
the millimetre.InstallationEasy hopefully, just…pip install coorblimeyUsageYou can either use this as a command line tool, or you can import it
into your python programs…… as a command line toolcoorblimey -t to_geographic -x 1418595 -y -689557 -z -6159338 -e GRS80This will give:Geographic coordinates (GRS80)
lat: -75.7283616724, lon: -25.9236668699, h: 30.705… in Python programsfromcoorblimey.geocentricsimportGeocentricsgeo=Geocentrics(1418595,-689557,-6159338,ellipsoid='GRS80')latlongs=geo.make_geographic()latlongswith be a list[lat, lon, z]
Package: coord-convert
China Coordinate Convertor中国火星坐标转换命令行工具，用于WGS-84(未偏移坐标),GCJ-02（国家测绘局、高德、谷歌中国地图）,BD-09(百度坐标系)三者之间的互相转换，支持文件格式：ESRI ShapefileGeoJSON安装推荐使用：pip install coord-convert或者也可以从源码安装：git clone https://github.com/sshuair/coord-convert.git
pip install -r requirements.txt
python setup.py install依赖python3fionatqdmclick使用方法注意：火星坐标转换是针对经纬度的转换，因此在进行转换前需要将坐标转换成经纬度；比如web墨卡托(3857)等投影坐标系需要先转成经纬度坐标(4326)Python API调用在python程序中调用相应的坐标转换接口fromcoord_convert.transformimportwgs2gcj,wgs2bd,gcj2wgs,gcj2bd,bd2wgs,bd2gcjlon,lat=120,40gcj_lon,gcj_lat=wgs2gcj(lon,lat)bd_lon,bd_lat=wgs2bd(lon,lat)print(gcj_lon,gcj_lat)# the result should be: 120.00567568355486 40.0013047896019命令行调用火星坐标转换还支持命令行直接对shp、geojson等文件进行转换，比如~/temp>coord_covertgcj2wgstests/data/Polyline/polyline.geojsonaa.geojson100%|██████████████████████████████████████████████████████|219/219[00:00<00:00,550.93it/s]更详细的用法：convert input china coordinate to another. 

    Arguments:
        convert_type {string} -- [coordinate convert type, e.g. wgs2bd]

            wgs2gcj : convert WGS-84 to GCJ-02
            wgs2bd  : convert WGS-84 to DB-09
            gcj2wgs : convert GCJ-02 to WGS-84
            gcj2bd  : convert GCJ-02 to BD-09
            bd2wgs  : convert BD-09 to WGS-84
            bd2gcj  : convert BD-09 to GCJ-02

        src_path {string} -- [source file path]
        dst_path {string} -- [destination file path]


    Example:
        coord_covert wgs2gcj ./tests/data/polygon/polygon_wgs.shp ~/temp/polygon_gcj.shp