一个面向数据帧的接口。

atlas-df的Python项目详细描述


atlas_df:一个面向数据帧的成熟atlas接口

Python VersionLicenseBuild StatusDocumentation StatusCoverage Status

Example Map

atlas_df是在正式客户机(ripe-atlas-cousteau)之上构建的成熟atlas api的接口。它将atlas资源转换为pandasgeopandas数据帧/序列。这使得使用python科学生态系统(matplotlib、seaborn、numpy、scikit learn,…)和atlas数据非常容易。

功能:

  • 将成熟的atlas资源转换为DataFrameSeries对象。
  • Caching个api请求。
  • 地理绘图/查询… 待办事项:测井,计算锚/探头之间的地理距离,…

目录

安装

atlas_df是一个python 3库,根据您的设置,您可能需要使用pippip3

pip install atlas_df

用法

一个全面的(todo)文档在Read the Docs上。

fromatlas_df.dataframesimportAnchorDataFrameanchors=AnchorDataFrame.from_api()measurements=anchors.loc[1029].fetch_mesh_measurements()

锚定

importdatetimeasdtfromatlas_df.anchoringimportAnchoringMeshanchoring_mesh=AnchoringMesh()anchor_fqdn_a='al-tia-as42409.anchors.atlas.ripe.net'anchor_fqdn_b='nc-nou-as56055.anchors.atlas.ripe.net'start_datetime=dt.datetime(2018,5,1)stop_datetime=dt.datetime(2018,5,7)af=4traceroute_ab,traceroute_ba=anchoring_mesh.fetch_results(anchor_fqdn_a,anchor_fqdn_b,af,'traceroute',{'start':START_DATETIME,'stop':STOP_DATETIME})

缓存

importatlas_dfatlas_df.CACHE_DIR='.atlas_df'atlas_df.CACHE_ENABLED=True

开发

git clone https://github.com/maxmouchet/atlas_df.git
cd atlas_df
pip install -e .

代码使用yapf格式化。

建筑文档

pip install sphinx sphinx-rtd-theme
sphinx-apidoc -f -o docs/source/ atlas_df
cd docs; make html

运行测试

pip install -U pytest pytest-cov
py.test --cov=atlas_df tests/

维护人员

@maxmouchet

贡献

已接受减贫战略。

许可证

MIT>2018 Maxime Mouchet

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java WLPs微文件(容错)超时实现不中断线程?   使用Jsoup对网页进行java解析。为什么Android上的行为有所不同?   java全屏安卓应用程序功能   java有没有一种方法可以将自定义对象列表放入cloudfirestore中的自定义对象中   平滑后的javagps数据比较   使用Java8谓词查找“最”正确值的函数式编程   java调整JFrame的大小(当子对象调整大小时):如何跟上?   if语句中的java条件   java如何配置JSP应用程序在Jboss和Tomcat上透明地处理JNDI   java如何在spring boot中验证@RequestHeader是否为null?   java从URL检索XML时不写入前几行   java在重写的paintComponent(…)中旋转图像方法   java Android透明GradientDrawable在emulator上变灰   java如何编辑PostgreSQL的Oracle 11G设置   java JAXb在解组期间未填充对象   java重新启动了响应。getBody()。getList(<ListName>)正在返回一个空集合   PHP和Java在能耗方面有什么不同?   没有源属性但嵌入html标记的java iFrame   java JTable导致我的应用程序崩溃