Saravanan666/pypi-org huggingface dataset:
Package: arcface
ArcFace face recognitionImplementation of theArcFace face recognition algorithm. It includes a pre-trained model based onResNet50.The code is based onpeteryuX'simplementation. Instead of using full Tensorflow for the inference, the model has been converted to a Tensorflow lite model usingtf.lite.TFLiteConverterwhich increased the speed of the inference by a factor of ~2.27.InstallationYou can install the package through pip:pip install arcfaceQuick startThe following example illustrates the ease of use of this package:>>>fromarcfaceimportArcFace>>>face_rec=ArcFace.ArcFace()>>>emb1=face_rec.calc_emb("~/Downloads/test.jpg")>>>print(emb1)array([-1.70827676e-02,-2.69084200e-02,-5.85994311e-02,3.33652040e-03,9.58345132e-04,1.21807214e-02,-6.81217164e-02,-1.33364811e-03,-2.12905575e-02,1.67165045e-02,3.52908894e-02,-5.26051633e-02,...-2.11241804e-02,2.22553015e-02,-5.71946353e-02,-2.33468022e-02],dtype=float32)>>>emb2=face_rec.calc_emb("~/Downloads/test2.jpg")>>>face_rec.get_distance_embeddings(emb1,emb2)0.78542You can feed thecalc_embfunction either a single image or an array of images. Furthermore, you can supply the image as (absolute or relative) path, or an cv2-image. To make it more clear, hear are the four possibilities:(Absolute or relative) path to a single image:face_rec.calc_emb("test.jpg")Array of images:face_rec.calc_emb(["test1.jpg", "test2.png"])Single cv2-image:face_rec.calc_emb(cv2.imread("test.png"))Array of cv2-images:face_rec.calc_emb([cv2.imread("test1.jpg"), cv2.imread("test2.png")])The face recognition tool returns (an array of) 512-d embedding(s) as a numpy array.Notice! This package does neither perform face detection nor face alignment! It assumes that the images are already pre-processsed!BenchmarkModelBackboneFrameworkLFW AccuracySpeed [ms/embedding] *ArcFace paperR100MXNet99.82-ArcFace TF2R50Tensorflow 299.35102This repositoryR50Tensorflow Lite96.8745* executed on a CPU: Intel i7-10510ULicenseLicensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence"). You may not use this work except in compliance with the Licence.License:European Union Public License v1.2
Package: arcframework
Arc 2.5.3Python ASGI web framework for creating fast and dynamic web applications.Arc is a python ASGI web framework for creating dynamic web pages. Arc is still under heavy devlopment, and all help is appreciated. Arc is built usingStarlette, and runs on the lighting fastuvicornweb server.InstallationArc is relatively easy to get set up with. Arc is cross platform, and can be installed on any operating system. You can install it using pip.# Windows
pip install arcframework

# Linux
pip3 install arcframeworkQuickstartArc is a very easy to use libary, and is similar to other micro frameworks such as Flask or Bottle, so learning it won't be too hard. The below is an example of an Arc application.fromarcimportApp,TextResponseapp=App()@app.route("/home")defhome(request):returnTextResponse("Hello, World")if__name__=="__main__":app.run()Copy and paste the above and run your file, you'll get an output like the following in your console.INFO: Running on http://127.0.0.1:5000

INFO: Press CTRL + C to stopNow go tohttp://127.0.0.1:5000/home, and you should seeHello Worldbeing displayed on the screen.Issues/BugsArc is still under heavy development abd has loads of bugs and errors that I'm constantly working on resolving. You can check out the documentation athttps://aboominister25.github.io/arc/. Feel free to open an issue or email me ataboominister@gmail.com, all help would be appreciated.
Package: arcfutil
arcfutil(ArcaeaFileUtility)为处理音乐游戏Arcaea相关文件（谱面，songlist，etc.）设计的Python模块。安装使用pip进行安装：pipinstall-Uarcfutil功能本模块大致分为处理.aff文件的arcfutil.aff包和命令行工具两部分。aff编辑框架将.aff中的note解析为python对象（以及将这些对象编码回.aff中的note格式）支持切片等特性。Python式地创作谱面吧！支持Arcaea谱面的各种元素！timinggroup支持为note对象提供了谱面编辑中的常用方法（复制、镜像、偏移等）提供Timing缓动、帧动画等常用谱面片段的构造工具命令行工具arcadeclean：清理Arcade产生的多余文件！sortassets：对Arcaea下载的数据文件进行整理，方便制谱器读取。songlist：根据songconfig.txt自动生成songlist兼容Brcbeb Soulmate等生成工具使用的songconfig.txt根据songlist批量生成对应的songconfig.txt自动生成packlist自动复制曲目背景用法请参阅文档。感谢预置缓动曲线实现来自easings.net。贝塞尔曲线实现来自WebKit。
Package: arcfutil-cvkit
arcfutil-cvkit使用OpenCV的arcfutil AFF工具包安装pip install arcfutil-cvkit由于使用了native namespace package结构，在手动安装时请使用pip：pip install -e .功能图片转黑线（暂时只有这一个用法图片转黑线函数image_to_arc()fromarcfutil.cvimportimage_to_arcasi2aarcs=i2a(image_path,time)参数参数名类型说明默认值pathstr图片路径timeint生成黑线的时间点sizelist接收一个带有4个浮点数的列表，控制图片映射的坐标范围（以原点为基准[上,右,下,左]）[1,1.5,-0.2,-0.5]max_gapfloatHough变换中线之间的最大间隔，过大会导致线之间相连，过小会导致线之间缝隙增大10
Package: arcgis
ArcGIS API for PythonWork with maps and geospatial data in Python using The ArcGIS API for Python.Use simple and efficient tools powered by Web GIS, for sophisticated vector and raster analysis, geocoding, map making, routing and directions. Administer, organize and manage users, groups and information items in your GIS.This library enables access to ready-to-use maps and curated geographic data from Esri and other authoritative sources, and works with your own data as well. It integrates well with the scientific Python ecosystem and includes rich support for Pandas and Jupyter notebook.To run sample notebooks and learn more about the API, visitour homepage.
Package: arcgis2geojson
arcgis2geojson.pyA Python library for converting ArcGIS JSON to GeoJSON: A partial port of ESRI'sarcgis-to-geojson-utils.Installationpip install arcgis2geojsonUsageAs a LibraryConvert an ArcGIS JSON string to a GeoJSON string>>>fromarcgis2geojsonimportarcgis2geojson>>>input="""{...     "attributes": {"OBJECTID": 123},...     "geometry": {   "rings": [   [   [41.8359375, 71.015625],...                                      [56.953125, 33.75],...                                      [21.796875, 36.5625],...                                      [41.8359375, 71.015625]]],...                     "spatialReference": {"wkid": 4326}}}""">>>output=arcgis2geojson(input)>>>output'{"type": "Feature", "geometry": {"type": "Polygon", "coordinates": [[[41.8359375, 71.015625], [21.796875, 36.5625], [56.953125, 33.75], [41.8359375, 71.015625]]]}, "properties": {"OBJECTID": 123}, "id": 123}'>>>type(output)<class'str'>Convert a python dict to a python dict>>>fromarcgis2geojsonimportarcgis2geojson>>>input={...'attributes':{'OBJECTID':123},...'geometry':{'rings':[[[41.8359375,71.015625],...[56.953125,33.75],...[21.796875,36.5625],...[41.8359375,71.015625]]],...'spatialReference':{'wkid':4326}}}>>>output=arcgis2geojson(input)>>>output{'type':'Feature','geometry':{'type':'Polygon','coordinates':[[[41.8359375,71.015625],[21.796875,36.5625],[56.953125,33.75],[41.8359375,71.015625]]]},'properties':{'OBJECTID':123},'id':123}>>>type(output)<class'dict'>On the Console# convert ArcGIS json file to GeoJOSN file$arcgis2geojsonarcgis.json>geo.json# fetch ArcGIS json from the web and convert to GeoJSON$curl"https://myserver.com/arcgis.json"|arcgis2geojsonLicensingarcgis2geojson is a derivative work of ESRI'sarcgis-to-geojson-utils. Original code is Copyright 2015 by Esri and was licensed underthe Apache License, Version 2.0.arcgis2geojson is made available under the MIT License.
Package: arcgiscolor
ArcGIS Pro Greedy ColorizationToolbox applies the greedy color algorithm to polyline or polygon features. Goal is to symbolize the features with the fewest required colors.This is best used in scenarios where there are a high cardinality column where individual colors do not matter.Installation RequirementsRequirementsArcGIS Pro (Locally installed)networkxhttps://networkx.org/To run, the networkx library must be installed in a cloned arcgis pro environment.Clone the environment in your Python settings in ArcGIS Pro, or via the commandline and set this as the active python environment.once cloned, install the networkx library.pip install networkxUsageWhen run in ArcGIS Pro, the tool will use the open map and active view. Based on the selected layer and field, the dataset will be colored with the fewest colors required to avoid color collisions.Feature symbology is updated in place. Data is unchanged.Default search strategy is 'largest first', but a different one can be specified. Full options availablehere.MethodTo calculate the minimum number of features, the toolbox must generate a graph representation of the dataset. As the graph represents a connected network, with nodes and links, the dataset is converted to this representation based on its spatial location.For polyline feature, the expectation is that each end represents a connected location. For example, two lines that end on each other, are considered connected and will be linked together. This represented is with the lines as node element in a graph, linked with an arbitrary line.To calculate the graph, the polyline feature is reduced to a point feature class with a point representing each end of the line. Each line will contain two points, sharing the input field value, which will then create the link in the networkx graph.A spatial join is completed to find the connected locations. The polygon features skips the previous step, and begins here. Similar assumption, in this case, if it touches, it is connected.Finally, the greedy color algorithm is applied to the graph and the layer is updated via the CIM in ArcGIS Pro.ExamplesPolygon LayerPolyline LayerPypiLibrary is also installable with pip.pip install arcgiscolorThen called with the following command.from ArcGISColor import ColorPolyline, ColorPolygonIf using this as a standalone, the same parameters of needing to supply an ArcGIS Project and layer apply.project = arcpy.mp.ArcGISProject("C:\\path\\to\\project.aprx")
layer = project.listMaps('map_name')[0].listLayers('polygon_layer_name')[0]

cpoly = ColorPolygon()
cpoly.apply_colors(layer, 'field_name', 'largest_first')

project.save()Additional options are available this way, such as saving a graph, re-using a graph, etc.
Package: arcgis-sdk
Python SDK for Arcgis APIInstallationInstall from Pypi.pipinstallarcgis-sdkQuick startClient>>>importarcgis_sdk>>>client=arcgis_sdk.ArcgisAPI('access_token')>>>client.self()Exceptions>>>try:...client.add_item(...username='mongkok',...title='my item',...type='Web Mapping Application'...)...exceptarcgis_sdk.ArcgisAPIErroraserr:...print(err.message)Refresh the token>>>client.refresh_token('client_id','refresh_token')Testsmaketest
Package: arcgisUtils
# Arcgis UtilsPackage combining functions to manage data and interact with the api in the arcgis online via thearcgispackage developed by ESRI.## DevelopingMake a copy of.env.sample(and rename.env) and copy your Argis Online credentials (see requirements below).## RequirementsArcgis online account credentials stored in.env:ARCGIS_ONLINE_PASSWORD: your passwordARCGIS_ONLINE_USER: your username
Package: arcgpt
ArcGPTDescriptionArcGPT is intended to be used with ArcGIS Pro and be run within the python window. ArcGPT relies on ChatGPT function calling to call arcpy functions to perform various tasks in ArcGIS Pro using natural language prompts. It is essentially a collection of ChatGPT function call functions that call geoprocessing tools via arcpy.DependenciesArcGIS Pro Desktop 2.9x or newerAn OpenAI API KeyPython 3.7x or newerarcpy (comes with your ArcGIS Pro installation)Getting StartedFollow the instructions on the below wiki page to setup your development environment.https://dev.azure.com/ngisaus/RND-GENAI/_wiki/wikis/RND-GENAI.wiki/331/ArcGPT-Dev-Environment-SetupOnce your environment setup has been completed, if running a standalone script, you can call arcGPT using the method below.import arcgpt

openaiKey = "[OPENAI KEY]"
llmModel= "gpt-3.5-turbo"
workspace = r"C:\temp"

reply = agent.query([USER INPUT COMMAND])

print(reply)Currently Supported FunctionsArcGPT uses the ChatGPT function calling feature to inform the ChatGPT model about all the supported functions.
The functions are generally calls to arcpy geoprocessing tools. The currently implemented functions are listed below:Get Current WeatherDescription:Get the current weather in a given location - CURRENTLY HARD CODED FOR DEMO PURPOSESChatGPT Function:get_current_weatherExample Query:"What is the weather in Perth today?"Limitations:Currently configured for demo purposes only - hard coded values return the same weather conditions for any input location.Get Schools in SuburbDescription:Get the schools that exist in any Western Australian suburb - outputs a new feature class in the ArcGIS Pro project's default GDB. Queries SLIP map services to obtain a suburb boundary, then uses the boundary to find any contained schools.ChatGPT Function:getSchoolsInSuburbExample Query:"Which schools are in Perth?"Limitations:Currently only viable for WA suburbs, if a suburb contains no schools, the tool will fail.Additional NotesWhile the code is running, the ArcGPT agent will maintain a chat/message history, as per a normal chatGPT session. If multiple queries are sent to the agent, the message history will build and provide the agent with additional context.To retrieve the message history, you can use the method below.messages = agent.message_historyarcgpt will never delete or edit any data, it will only create new feature classes.all your commands are going to OpenAI to generate the responses so just be aware of that.arcgpt uses the gpt-3.5-turbo model by default, other models are available, seehttps://platform.openai.com/docs/modelsTo update the model used to create a new agent, you can change the model parameter as below.import arcgpt

openaiKey = "[OPENAI KEY]"
llmModel= "[MODEL NAME]" # e.g. gpt-4
workspace = r"C:\temp"

reply = agent.query([USER INPUT COMMAND])

print(reply)
Package: archaea
ArchaeaArchaea is a base geometric library that includes basic geometric objects
to create meshes and triangulated exports of meshes.Motivation of creating this library is started with master thesis, departments of Computational
Science and Engineering and Architecture at Istanbul Technical University.
Aim of thesis is to create geometric definitions for different environmental
solvers like EnergyPlus and OpenFOAM to run them parallely on Linux environment.Archaea is a geometrical playground for now, most important functionality of library
is executing earcut algorithm on 3D coordinate system by plane (u, v) transformations.
Shortly library can create triangulations with holes on 3D.Supported ObjectsCoordinateArray: Base object for vectoral operations on Vector and Point objects.Vector, Vector2d, Vector3d: Vector operations like Dot and Cross Product, also
serves transformations of other geometrical objects.Point, Point2d, Point3d: Position object to construct other geometric objects
like LineSegment, Polyline, Mesh..LineSegment: Construct with start and end point.Polyline: List of consecutive LineSegmentsLoop: Closed polyline definition.Face: Face is a loop definition that might have holes with inner loops.Mesh: Polygon and vertex list definition for exporting.Supported OperationsMove: Objects can be moved by creating copy of source object.Reverse: LineSegment, Polyline, Loop and Face can be reversed.Offset: Loops and Faces can be offseted.Extrude: Faces can be extruded that creates list of Faces. Holes also covered.Setup Local EnvironmentSetup for virtual environmentgitclonegit@github.com:archaeans/archaea.git

mkdirvenv

sudoaptinstallpython3.10-venv

python3-mvenv$HOME/..path../archaea/venvsource./venv/bin/activate

python3setup.pyinstall!!! NOTE
ifpython3 setup.py installdoesn't install dependencies, try to install them separately likepip3 install numpy-stlSetup VS CodeCtrl + Shift + PPython: Select InterpreterEnter Interpreter PathFind python in virtual environment /venv/bin/python
Package: archaea-simulation
Archaea SimulationWrapper definitions for simulation tools.Motivation of creating this library is started with master thesis, departments of Computational
Science and Engineering and Architecture at Istanbul Technical University.
Aim of thesis is to create scenarios for different environmental
solvers like EnergyPlus and OpenFOAM to run them parallely on Linux environment.
Preparation of these scenario files done by geometricArchaealibrary.Focused Simulation ToolsOpenFOAM: OpenFOAM requires stl geometries to run it's solvers
behind the scenes. (Pre-Alpha)EnergyPlus: EnergyPlus requires idf schema to run simulations. (MVP)UWG: Urban weather generator is a solver to calculate effects on urban microclimate.
It creates new .epw file for EnergyPlus simulations.Main idea behind this work is to be experimental and didactic.
Package: archaeo-mag
archaeo-magPython code for processing magnetometry data with a focus on depth estimations.This project aims to provide Python 3 code for standard and more complex data processing techniques for magnetometry data.
The focus is on archaeological data, but the techniques are certainly applicable to other disciplines.
Additionally, project will focus on depth estimation techniques.The project is in its early stages of development on Github, check back soon for updates.========
OverviewPython 3.8 code for processing magnetometry data with a focus on depth estimations.Free software: MIT licenseInstallation
Package: archbuilder
ArchbuilderArchbuilder is a tool that aims to speed up the setting up of projects by creating the project directories and files from user-defined templates.InstallationUse the package managerpipto install Archbuilder.pipinstallarchbuilderUsage1. By using a python script# Import archbuilderfrombuilderimportBuilderfromtemplateimportTemplate# Create a template from a json filetemplate=Template('sass.json')# Create the project tree from the templateproject=Builder('sass',template)project.build()2. By using the command-lineInvoke archbuilder to create your project. Pass the name of the project as the first argument and the path to the json file as the second argumentarchbuildersasssass.jsonContributingContributions are always welcome!For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.License
Package: archelonc
Curses based application for command history that can be wired up to a
Web server (archelond) for shared shell history across multiple hosts.InstallationpipinstallarcheloncOnce that is setup you can try it out by running. archelonthis
uses your existing shell history to let you try out the client.  To
make this work more like the bash reverse history search viaC-rI
recommend adding:bind'"\033a":". archelon\n"'this will launch the reverse search of archelon via Alt-A.Web Enabled HistoryFrom here you can use archelon as is, but the cool part really start
when you install archelond and wire the client up to use that project
for shared and indexed shell history.  To configure the client side
after you have setup the server, you just need to add two environment
variables to the mix.ARCHELON_URL- Web URL to your archelond installationARCHELON_TOKEN- The API token for your user.  You can get this
by going tohttps://your.archelond.domain/api/v1/tokenand logging in with
the username and password you’ve created.Add those to.bashrc,.profile, or whichever shell startup you
are using and it will be hooked up to the Web server.  You can verify
this and populate your Web history by running thearchelon_importcommand which will import your current computers history.Keyboard ShortcutsWithin the client curses application, there are a few handy keyboard shortcuts.Alt-o:This presses the Ok button and runs whatever command is in thecommandfield.Alt-c:This presses the cancel button and exits out of the application
without running a command.Ctrl-Calso works, but currently
has a nasty exception message.Ctrl-x:This brings up the menu for doing things like changing the order of the
search results.Within MenusWithin the menu there are also keyboard shortcuts.  And are executed
emacs style, i.e.Ctrl-xCtrl-fto set sorting order to
oldest->newest.  So far those are:Ctrl-f:Sort results from oldest to newestCtrl-r:Default order. Sort results from newest to oldest.
Package: archer
Archer is a micro RPC framework inspired byFlaskbased onThrift.Archer is super easy to useSave in a hello.py:fromarcherimportArcherapp=Archer('PingPong')@app.api('ping')defping():return'pong'Save in a hello.thrift:service PingPong {
    string ping(),
}Archer would find the thrift file for you, and relying onThriftpyto generate code on the fly.And Easy to SetupAnd run it:$pipinstallArcher$archerrun*Runningon127.0.0.1:6000/Archer would find the app instance to start a dev server, and reload it
when detecting changes on your python or thrift file.Quick to get some feedbackJust run the command:$archercallping*pongUse the client shellJump into shell with client at your hand:$archerclient>>>client.ping()Pretty cool, eh!Linksdocumentation
Package: archerv2
Archer is a micro RPC framework inspired byFlaskbased onThrift.Archer is super easy to useSave in a hello.py:fromarcherv2importArcherapp=Archer('PingPong')@app.api('ping')defping():return'pong'Save in a hello.thrift:service PingPong {
    string ping(),
}Archer would find the thrift file for you, and relying onThriftpyto generate code on the fly.And Easy to SetupAnd run it:$pipinstallArcher$archerv2run*Runningon127.0.0.1:6000/Archer would find the app instance to start a dev server, and reload it
when detecting changes on your python or thrift file.Quick to get some feedbackJust run the command:$archerv2callping*pongUse the client shellJump into shell with client at your hand:$archerv2client>>>client.ping()Pretty cool, eh!Linksdocumentation
Package: arches-django-revproxy
This is a fork of django-revproxy used to support Arches running on Django 3.2.
This will not be maintained for future versions.
Do not use for applications other than Arches > v6.1.A simple reverse proxy using Django. It allows to use Django as a
reverse Proxy to HTTP requests. It also allows to use Django as an
authentication Proxy.Documentation available athttp://django-revproxy.readthedocs.org/FeaturesProxies all HTTP methods: HEAD, GET, POST, PUT, DELETE, OPTIONS, TRACE, CONNECT and PATCHCopy all http headers sent from the client to the proxied serverCopy all http headers sent from the proxied server to the client (excepthop-by-hop)Basic URL rewriteSets the http header REQUEST_USER if the user is logged in DjangoSets the http headers X-Forwarded-For and X-Forwarded-ProtoHandles redirectsFew external dependenciesApply XSLT transformation in the response (requires Diazo)Dependenciesdjango >= 1.8urllib3 >= 1.12diazo >= 1.0.5 (optional)lxml >= 3.4, < 3.5 (optional, but diazo dependency)Installpip installdjango-revproxy
Package: archeSetup
This is the  initialisation of the application and it will be use as check.
This is the setup for the basic Application library for reading the files and extract the data from the txt/lof files. Also, we can convert the data to csv filesChnage LOG0.0.4 (20/05/2023)4th  Release after bug fixing0.0.7 (11/06/2023)7th  Release after bug fixing0.0.9 (11/06/2023)8th  Release after add absolute path of modules