Saravanan666/pypi-org huggingface dataset:
Package: citrusdb
🍋 citrus.open-source (distributed) vector databaseInstallationpipinstallcitrusdbGetting started1. Create indeximportcitrusdb# Initialize clientcitrus=citrusdb.Client()# Create indexcitrus.create_index(name="example",max_elements=1000,# increases dynamically as you insert more vectors)2. Insert elementsids=[1,2,3]documents=["Your time is limited, so don't waste it living someone else's life","I'd rather be optimistic and wrong than pessimistic and right.","Running a start-up is like chewing glass and staring into the abyss."]citrus.add(index="example",ids=ids,documents=documents)You can directly pass vector embeddings as well. If you're passing a list of strings like we have done here, ensure you have yourOPENAI_API_KEYin the environment. By default we use OpenAI to to generate the embeddings. Please reach out if you're looking for support from a different provider!3. Searchresults=citrus.query(index="example",documents=["What is it like to launch a startup"],k=1,include=["document","metadata"])print(results)You can specify if you want the associated text document and metadata to be returned.
By default, only the IDs are returned.Go launch a repl onReplitand see what result you get after running the query!resultwill contain theidsof the topksearch hits.Examplechat w/ replit ai podcastpokedex searchFacing issues?Feel free to open issues on this repository! Discord server coming soon!PS: citrus isn't fully distributed just yet. We're getting there though ;)
Package: cits
Python Package for CITS algorithm: Causal Inference from Time Series dataCITS algorithm infers causal relationships in time series data based on structural causal model and Markovian condition of arbitrary but finite order.InstallationYou can get the latest version of CITS package as followspip install citsRequirementsPython >= 3.6R >= 4.0R packagekpcalgand its dependencies. They can be installed in R or RStudio as follows:> install.packages("BiocManager")
> BiocManager::install("graph")
> BiocManager::install("RBGL")
> install.packages("pcalg")
> install.packages("kpcalg")DocumentationDocumentation is available at readthedocs.orgTutorialSee theGetting Startedfor a quick tutorial of the main functionalities of this library and check if it is installed properly.ContributingYour help is absolutely welcome! Please do reach out or create a future branch!CitationComing soon
Package: citty
NAMEcitty: Continuous Integration in a ttySYNOPSIS## Install

$ python setup.py develop   # local

$python setup.py install    # global

## Add projects

$ citty add ~/projects/foo  # "name" is foo

$ citty add ~/projects/foo --name fubar  # "name" is "fubar"

## List projects
$ citty list
            foo : make test  : ~/projects/foo
          fubar : make test  : ~/projects/foo

$ citty list fubar		# match name or path
          fubar : make test  : ~/projects/foo

## Delete projects

$ citty delete foo          # exact name match

$ citty list
          fubar : make test  : ~/projects/foo

$ citty delete --all	# delete ALL the projects


## Run CI in your TTY
$ citty
project1 | fubar       	# <-- displayed in colorsDESCRIPTIONRemember the mantra of Test-Driven Development (TDD)?Red, Green, Refactor!Well, that's all I'm trying to do. So I wanted a CI driver that would run my
tests, show the status, and get out of the way!cittyruns in a terminal. It uses\rto refresh the same line over and over
again. And it prints the name of each project it knows about, in either
Coca-Cola RED, DeWalt YELLOW, or John Deere GREEN. (And by "Coca-Cola",
"DeWalt", and "John Deere" I mean "ANSI".)1,000 words or moreHere's a video ofcittyrunning inside a:terminalwindow
in Gvim (version 8!), using three "projects" that are really
symlinks to the same directory. With the sleep time set to 5 seconds. And amake testthat just
uses the Bash$RANDOMvalue to flip a coin to determine
success or failure. (Useless, but colorful in citty!)CodingThere is a subtle and nuanced coding system:Green - Failure is not an option!Yellow - Hold my beer while I pass these tests!Red - It turns out, failureisan option!StatusHow do I determine the status? Using the result code returned frommake test.Testing mechanismsYou can use any testing mechanism you like, as long at it'smake test.Or, you could add a new feature tocitty.py. I'll gladly read your PR,
but if it includes the words "XML" or "microservice" it's going right in the
trash.
Package: citybrain-official
simplify data retrieving on citybrain.orgretrieveraw datafromodps data sourceon citybrain.orgfromcitybrain_officialimportclientdata=client.retrieve_df(dataAddress='',sql='')print(data)retrieve data aspandas dataframefromodps data sourceon citybrain.orgfromcitybrain_officialimportclientdata=client.retrieve_df(dataAddress='',sql='')print(data)retrieveraw datafromfile data sourceon citybrain.orgfromcitybrain_officialimportclientdata=client.retrieve_df(dataAddress='')print(data)retrieve data aspandas dataframefromcsv data sourceon citybrain.orgfromcitybrain_officialimportclientdata=client.retrieve_df(dataAddress='')print(data)
Package: citydata
包介绍：Python语言的身份证前6位行政区划代码与地区名称对应。通过传入省市县（区）完整名称返回地区代码。PIP安装：pip install citydata地区信息 json/dict 组成示例：{"id":"110101","name":"东城区","parentId":"110100","shortName":"","letter":"","cityCode":"","pinyin":""}API函数代码# args 最多接受三个参数，顺序依次为省、市、县（区）defget_city_id(self,*args)->tuple[str,...]:ifnotargsorlen(args)>3:raiseValueError("参数错误")# 一个参数，省级/市级/县（区）级# 因存在重名县（区），不建议直接查询县（区）级iflen(args)==1:province=args[0]forareainself.cityData:ifarea['name']==province:province_id=area['id']returnprovince_id,raiseValueError("未能找到对应的行政区划代码，请检查参数")# 两个参数，省市两级或市县（区）级两级eliflen(args)==2:province,city=argsprovince_id="0"forareainself.cityData:ifarea['name']==province:province_id=area['id']continueifarea['name']==cityandarea['parentId']==province_id:city_id=area['id']returnprovince_id,city_idraiseValueError("未能找到对应的行政区划代码，请检查参数")# 三个参数，省市县(区)三级else:province,city,county=argsprovince_id,city_id="0","0"forareainself.cityData:ifarea['name']==province:province_id=area['id']continueifarea['name']==cityandarea['parentId']==province_id:city_id=area['id']continueifarea['name']==countyandarea['parentId']==city_id:county_id=area['id']returnprovince_id,city_id,county_idraiseValueError("未能找到对应的行政区划代码，请检查参数")引用举例fromcitydataimportCityDatacity_data=CityData()city_ids=city_data.get_city_id('河北省','石家庄市','裕华区')# 包含省\市\县（区）字样的完整行政区名，否则找不到结果province_id=city_ids[0]# 130000 (str)city_id=city_ids[1]# 130100 (str)county_id=county_id[2]# 130108 (str)TODO城市简称邮政编码城市拼音
Package: cityenergyanalyst
City Energy Analyst (CEA)TheCity Energy Analyst (CEA)is an urban energy simulation platform and one
of the first open-source computational tools for the design of low-carbon and highly efficient neighborhoods and districts
The CEA combines knowledge of urban planning and energy systems engineering in an integrated framework. This
allows to study the effects, trade-offs and synergies of urban design options, building retrofits and energy infrastructure plans.Clickherefor installation manual and tutorialsClickhereto report an issueClickhereto contact usAttention!We will end support of the ArcGIS interface by the 1st of May of 2019. This means that there will not be anymore
tutorials nor advice on how to use this interface. You could still use this interface at your own risk.
We invite all CEA users to get acquainted with the CEA Dashboard. The CEA dashboard is our new 100% open source user interface.
We will aim to create a first tutorial on how to use this interface by mid-april of 2019.Cite us:For V3.10.0 (stable):
Package: citygml2stl
Python library to convertCityGMLdata to
STL 3D models printable on FDM 3D printers, such as variousRepRapprinters.CityGML versions 2.0.0, 1.0.0 and 0.4.0 are supported. Other versions might work as well.This is a coursework forFree software GISclass onFaculty of Civil Engineering,Czech Technical University in Prague(academic
year 2014/2015, group F). Licensed as MIT (see LICENSE).CityGML of Alexanderplatz, Berlin, Germany as STL. Data ©Research Center Karlsruhe,
Institute for Applied Computer ScienceInstallationTo install, just use regular Python means, such as pip.
It is recommended to install Cython before you install this or other requirements.
Python 3.3+, 2.7 and pypy are supported.pipinstallCythonpipinstallcitygml2stlOr if installing from cloned repository or unpacked sources:pipinstallCythonpipinstall-rrequirements.txtpythonsetup.pyinstallUsageTo use cityglm2stl from Python proceed as follows:# import stufffromcitygml2stlimportcitygmlfromcitygml2stlimportpolygonsfromcitygml2stlimportstl# parse the CityGML filec=citygml.CityGML('Berlin_Alexanderplatz_v0.4.0.xml')# export to file berlin.stlwithstl.StlFile('berlin.stl')asberlin:# Specify as many types as you want,# or leave without arguments to get all city objectsforobjinc.get_objects_of_types('Building'):berlin.write_triangles(polygons.object2triangles(obj))Or, if you would prefer to have multiple STL files instead:# initialize a counter for filenamescounter=0forobjinc.get_objects_of_types('Building'):withstl.StlFile('berlin{}.stl'.format(counter))asberlin:berlin.write_triangles(polygons.object2triangles(obj))counter+=1Note that given the quality of most CityGML data found, the STLs will probably not be valid as the
facets will intersect each other. Also given the way the algorithm works, the order of the vertices
of a facet is random and will not always follow the right hand rule.That said, consider that output needs repairing. Use public cloud services such asnetfabb Cloudor even open source tools such asADMeshto repair the output.You can even usePython’s admeshmodule to repair the STLs:importadmesh...filename='berlin{}.stl'.format(counter)withstl.StlFile(filename)asberlin:berlin.write_triangles(polygons.object2triangles(obj))s=admesh.Stl(filename)s.repair()# the results are often located on unthinkable coordinatess.translate(0,0,0)s.write_binary(filename)Note that due to limitations of the admesh module it is currently not possible to redirect output
of citygml2stl to admesh without writing it to a file first.A sample script to invoke from command line is installed to PATH:$citygml2stlBerlin_Alexanderplatz_v0.4.0.xmlConvertingBerlin_Alexanderplatz_v0.4.0.xmltoBerlin_Alexanderplatz_v0.4.0.stlAuthorsMiro HrončokInspired a bit byCityGML2OBJsbyFilip Biljecki
Package: cityhall
This is the python library for City Hall Enterprise Settings ServerABOUTThis project is written in Python 2.7 and can be installed using:pip install cityhallUSAGEThe intention is to use the built-in City Hall web site for actual
settings management, and then use this library for consuming those
settings, in an application.  As such, there are only a few commands to
be familiar with:from cityhall import SettingscityhallSettings = Settings(url, user, password) - Must be called toinitiate a session with City Hall. The password should be in
plaintext, it will be hashed by the library.cityhallSettings.logout() - To be called when the session is over.cityhallSettings.get() - This should be the way to retrieve a value.To get the value of ‘/some_app/value1’, use:cityhallSettings.Get(‘/some_app/value1’)For more in depth information about this library, please check the wiki.LICENSECity Hall source files are made available under the terms of the GNU Affero General Public License (AGPL).
Package: cityImage
cityImageA tool for analysing urban legibility and extracting The Computational Image of the CityThis repository provides a set of functions to extract salient urban features in line with the definitions laid down by Kevin Lynch inThe Image of The Cityusing open and freely available geospatial datasets.The tools are written in Python and uses a series of libraries, includingGeopandas,OSMNx,PyVistaand related dependencies.The methods are fully documented inA Computational approach to â€˜The Image of the Cityâ€™by Filomena, Verstegen, and Manley, published inCities.
The full documentation is available atIntroduction
Package: cityiq
This module and command line tool provides access to theCityIQAPI, with
particular focus on getting metadata and parking events. The interface includes
a basic access object for getting metadata and events, a scraper object for
mass downloading events, and a command line tool for downloading and processing
events.QuickstartInstall the module with pip:pipinstallcityiqThen generate a configuration file with:ciq_config-wEdit the file with your credentials and other information for your system. The
default file is configured for the San Diego system, but you may have toupdate
the client id and password.You can list the nodes, assets and locations in the system with theciq_nodesprogram:ciq_nodes--locations# display locations a JSON linesciq_nodes--cameras# display camera assets as JSON lines
# etcYou can also dump all assets or all locations to CSV files.ciq_nodes-Aassets.csvciq_nodes-Llocations.csvGetting events is a two step process, and can be done with either the CLI programs
or the Python API. To get events with the CLI, fors download them to the cache.
The cache location is defined in the configuration file, and should have at least
100GB of free space.First, download and cache the events. The download will run for all of the
assets that have the given event, over the whole time range. On the San Diego system,
time ranges longer than a few months can take days to download.ciq_events-eBICYCLE-s2020-01-01-f2020-02-01The downloaded data is stored in the cache as CSV files, which you can load directly
in which pandas or dask, or convert to one CSV file per asset:ciq_events-eBICYCLE-s2020-01-01-f2020-02-01DevlopmentCommittingThe project scaffold gets the version number for the module from git. To get the version number:$ python setup.py --versionSet the version with a tag. The version numbers are specified withPEP440$ git tag 0.0.1Remember to push tags to the remote withgit push--tagsPublishingPublish the project to toPyPIwith twine:pip install twine
twine upload dist/*ScaffoldingThis project has been set up using PyScaffold 3.1. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: citylex
🗽 CityLex: a free English lexical databaseCityLex is an English lexical database intended to replace or enhance databases
likeCELEX. It combines data from up
to seven unique sources, including frequency norms, morphological analyses, and
pronunciations. Since these have varying license conditions (some are
proprietary, others restrict redistribution), we do not provide the database as
is. Rather the user must generate a personal copy by executing a Python script,
enabling whatever sources they wish to use.Building your own CityLexTo install CityLex executepipinstallcitylexTo see the available data sources and options, executecitylex --help.To generate the lexicon, executecitylexwith at least one source enabled
using command-line flags. As most of the data is downloaded from outline
sources, an internet connection is normally required. The process takes roughly
four minutes with all sources enabled; much of the time is spent downloading
large files.To generate a lexicon with all the sources that don't require manual downloads,
executecitylex--all-freeFile formatsTwo files are produced. The first, by defaultcitylex.tsv, is a standard
wide-format "tab separated values" (TSV) file, of the sort that can be read into
Excel or R. Some fields (particularly pronunciations and morphological analyses)
can have multiple entries per wordform. In this case, they are separated using
the^character.Advanced users may wish to make use of the second file, by defaultcitylex.textproto, atext-formatprotocol bufferwhich
provides a better representation of the repeated fields. To parse this file in
Python, use the following snippet:importcitylexlexicon=citylex.read_textproto("citylex.textproto")This will parse the text-format data and populatelexicon. One can then
iterate overlexicon.entrylike a Python dictionary.Non-redistributable data sourcesNot all CityLex data can be obtained automatically from online sources. If you
wish to enable CELEX features, follow the instructions below.This proprietary resource must be obtained from theLinguistic Data
ConsortiumasLDC96L14.tgz. The file
should be decompressed usingtar-xzfLDC96L14.tgzThis will produce a directory namedcelex2. To enable CELEX2 features, use--celexand pass the local path of this directory as an argument to--celex_path.For more informationcitylex.protofor the protocol buffer data structurecitylex.bibfor references to the data sources usedFor contributorsTo regeneratecitylex_pb2.pyyou will need to install theProtocol Buffers C++ runtimefor your platform, making sure the version number (e.g., the one returned byprotoc --versionmatches that ofprotobufinrequirements.txt. Then, runprotoc --python_out=. citylex.proto.LicenseThe CityLex codebase are distributed under the Apache 2.0 license. Please seeLicense.txtfor details.All other data sources bear their original licenses chosen by their creators;
seecitylex --helpfor more information.AuthorCityLex was created byKyle Gorman.
Package: citylink-utils
The following package was developed to help process despatch requests
withCity Linkcouriers based in the UK.They lacked an API for easy management of various functions such as
retrieving manifests, reference codes, etc.This package works by using the Mechanize library to navigate your
commercial account admin area to carry out requests such as:Fetch pending collectionsGrab company reference numbersGrab CityLink reference numbersGet full HTML copy of collection manifestEmail the manifestRequirementsThe version below have been tested and working. Its possible other
earlier and later versions may work. *Mechanize 0.2.5+*lxml
3.3.3+*Mailer 0.7+ExamplesEmail Manifestimportcitylink.CityLinkuserid="XXXXXX"password="XXXXXX"cl=CityLink(userid,password)cl.login()cl.mail_manifest(emailfrom="from@test.com",emailto="to@test.com")Get list of CityLink reference codesimportcitylink.CityLinkuserid="XXXXXX"password="XXXXXX"cl=CityLink(userid,password)cl.login()print(cl.fetch_citylink_refs())
Package: cityloc
citylocLook up world city coordinates and country codesPython (2 and 3) module to look up world city locations and country codes.
Uses data from the Basic World Cities Database provided by Simplemaps.com. The data is licensed under theCreative Commons Attribution 4.0 license.Installation$ pip install citylocExamplesLook up city>>>fromcitylocimportcity_lookup>>>r=city_lookup('London',country='GB')>>>pprint.pprint(r)[{'capital':1,'country':'GB','id':6911,'lat_wgs84':51.5,'long_wgs84':-0.1167,'name':'London','name_ascii':'London','population':8567000,'region':''}]Look up capital city for country>>>fromcitylocimportcapital_for_cc>>>r=capital_for_cc("FR")>>>pprint.pprint(r){'capital':1,'country':'FR','id':6687,'lat_wgs84':48.8667,'long_wgs84':2.3333,'name':'Paris','name_ascii':'Paris','population':9904000,'region':'Île-de-France'}Version History0.1.1: Added capital_for_cc (17/09/2019)0.1.0: Initial release (03/01/2019)BSD LicenseCopyright (C) 2019 Sveinbjorn ThordarsonRedistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.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.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.
Package: citymaker-sdk
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.
Description: UNKNOWN
Keywords: 3D 三维 伟景行 Citymaker
Platform: windows
Requires-Python: >=3.7
Package: city-of-saskatoon-auth
city-of-saskatoon-authAn unofficial Python module for authenticating with the City of Saskatoon website.Features:Authenticates with both the main City of Saskatoon website/user portalAuthenticates with the My SmartUTIL toolProvides arequests.sessionobject that allows you to make authenticated requestsAllows saving and restoring your session for later useUsagefromcity_of_saskatoon_authimportsessions=session.Session('username','password')s.login()# Log in to main City of Saskatoon portals.smart_util_login()# OPTIONAL: Log in to the My SmartUTIL portal# You are now authenticated with the City of Saskatoon website, and can make authenticated requests.# s.get() and s.post() are available, and use the same API as the requests librarys.get('URL')s.post('URL',data={},headers={})Saving and restoring your sessionYour session can be written to a byte string that can either be saved to a file any other storage. It can then be later restored to make requests without logging in again.WARNING: This archive contains your username and password, and is NOT secure. Be careful where you store it.fromcity_of_saskatoon_authimportsessions=session.Session('username','password')s.login()# Log in to main City of Saskatoon portalsaved_session=s.to_archive()s2=session.Session.from_archive(saved_session)s2.login()# Checks if the session is still valid, and logs in again if notNOTE: Even though your main City of Saskatoon session was restored, you'll need to calls.smart_util_login()for every new session. This ensures you're getting the most up-to-date data.
Package: city-of-saskatoon-smart-util
city-of-saskatoon-smart-utilAn unofficial Python module for interacting with the City of Saskatoon's SmartUtil service.Features:Fetch the meters from your SmartUTIL accountFetch the previous 24 hours of data from your SmartUTIL accountUsagefromcity_of_saskatoon_smart_utilimportSmartUtilsu=SmartUtil('username','password')su.login()meters=su.get_meters()usage=su.get_past_24_hour_usage(meters[0])# [{'timestamp': '2022-10-26 21:15', 'value': 0.27}, {'timestamp': '2022-10-26 21:30', 'value': 0.29}, {'timestamp': '2022-10-26 21:45', 'value': 0.29}, ...]