Saravanan666/pypi-org huggingface dataset:
Package: mobilipy
MobilipyMobilipyis a mobility analysis package that lets you identify complete trip information (meaning segmentation into trips and activities, mode detection as well as home and work location detection) from raw GPS data. It also enables working with GTFS data. In addition to that, it proposes two ways to make the data more private.For more information refer tothe official documentation.InstallationpipinstallmobilipyBelow is an example usage of the pipeline:Preparationfrommobilipyimportgtfs_helper,legs,mode_detection,poi_detection,plot,preparation,privacy,segmentation,waypointsdataframew_df=waypointsdataframe.WaypointsDataFrame(data)df_prepared=preparation.prepare(w_df)Segmentationsegments_detected=segmentation.segment(df_prepared)Mode detectionsegments_modes_detected=mode_detection.mode_detection(segments_detected)Legslegs_user=legs.get_user_legs(segments_modes_detected,user_id)Home and work detectionhome_location,work_location=poi_detection.detect_home_work(legs_user,df_prepared)Privacyobfuscated_df,shifted_home,shifted_work=privacy.obfuscate(w_df,[home,work])aggregated_data=privacy.aggregate(w_df)GTFSgtfs_helper.GTFS_Helper(directory='./gtfs/')
Package: mobiliteit-api
Mobiliteit.lu API PackageThis is a very small package allowing you to access the HAFAS API endpoint to access the realtime data for all Luxembourgish busses, trains and trams which Mobiliteit.lu provides to the public.All you need is an API key.For more details about the API or on how to get a key, check out the API documentation on github:https://github.com/Felix3qH4/Mobiliteit.lu-API-documentation
Package: mobility
Mobility is a gem for storing and retrieving translations as attributes on a
class. These translations could be the content of blog posts, captions on
images, tags on bookmarks, or anything else you might want to store in
different languages.Storage of translations is handled by customizable “backends” which encapsulate
different storage strategies. The default, preferred way to store translations
is to put them all in a set of two shared tables, but many alternatives are
also supported, including [translatable
columns](http://dejimata.com/2017/3/3/translating-with-mobility#strategy-1) and
[model translation
tables](http://dejimata.com/2017/3/3/translating-with-mobility#strategy-2), as
well as database-specific storage solutions such as
[jsonb](https://www.postgresql.org/docs/current/static/datatype-json.html) and
[Hstore](https://www.postgresql.org/docs/current/static/hstore.html) (for
PostgreSQL).
Package: mobilitydb-sqlalchemy
MobilityDB SQLAlchemyThis package provides extensions toSQLAlchemyfor interacting withMobilityDB. The data retrieved from the database is directly mapped to time-indexed pandas DataFrame objects. TGeomPoint and TGeogPoint objects can be optionally mapped to movingpandas’ Trajectory data structure.Thanks to the amazing work byMobilityDBandmovingpandasteams, because of which this project exists.This project is built usingPyMEOSA demo webapp built using this library is now available online:Live Demo:https://mobilitydb-sqlalchemy-demo.adonmo.comSource Code:https://github.com/adonmo/mobilitydb-sqlalchemy-demoInstallationThe package is available onPyPI, for Python >= 3.7pipinstallmobilitydb-sqlalchemyUsagefrommobilitydb_sqlalchemyimportTGeomPointfromsqlalchemyimportColumn,Integerfromsqlalchemy.ext.declarativeimportdeclarative_baseBase=declarative_base()classTrips(Base):__tablename__="test_table_trips_01"car_id=Column(Integer,primary_key=True)trip_id=Column(Integer,primary_key=True)trip=Column(TGeomPoint)trips=session.query(Trips).all()# Querying using MobilityDB functions, for example - valueAtTimestampsession.query(Trips.car_id,func.asText(func.valueAtTimestamp(Trips.trip,datetime.datetime(2012,1,1,8,10,0))),).all()There is also atutorialpublished on Anita Graser’s blog.For more details, read ourdocumentation(specifically, thequickstart).ContributingIssues and pull requests are welcome.For proposing new features/improvements or reporting bugs,create an issue.Checkopen issuesfor viewing existing ideas, verify if it is already proposed/being worked upon.When implementing new features make sure to add relavant tests and documentation before sending pull requests.Setup environmentFirst, make sure you havepoetry installedThen, get the dependencies by running (in the project home directory):poetryinstallAlso make sure you setup git hooks locally, this will ensure code is formatted usingblackbefore committing any changes to the repositorypre-commitinstallRunning TestsSpin up a mobilitydb instancedockervolumecreatemobilitydb_datadockerrun--name"mobilitydb"-d-p25432:5432-vmobilitydb_data:/var/lib/postgresqlcodewit/mobilitydbRun the testsmovingpandas is an optional dependency - but to run tests you would need it. So if this is your first time running tests, install it by running:poetryinstall-EmovingpandasNow, you can actually run the tests using:poetryrunpytest
Package: mobility-graph
Mobility GraphMobility Graph is a Python package for the creation, manipulation,
and study of the mobility systems, dynamics, and functions of complex intermodal
mobility networks.A graph tool for a better network analysis:The objective of this package is to build a directed (or a multi directed) graph
that contains all the basic tools to manipulate the graph and study changes
with a focalization on mobility specific functions such as shortest path and network density and connectivity.Graph structure:Nodes for stops, edges for connected stops with the respective mode.Analysis tools:Reads different mobility data and builds an adaptive graph to the mode of mobility.Many standard graph algorithmsStandard mobility networks analysis toolsSearch Algorithm tools:Search algorithm to find all possible paths from origin to destination with the respective modes.Best Path Algorithm:Search Algorithm to define the best possible route based on the chosen filter. (Mode, walk score, affluence)DocumentationIf you meet the following error on a Windows machine:A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.Click herefor a complete walkthrough.##Usage
This repository contains all project files.Simple example"""Create a generic graph with two nodes and one edge"""frommobility_graphimportGraphg=Graph()# creating a graph objectg.add_node(stop_id='a',stop_name='Origin',stop_lon='1',stop_lat='3')g.add_node(stop_id='b',stop_name='Destination',stop_lon='5',stop_lat='2')g.add_edge('a','b',20,'walk')fornodeing:forwinnode.get_connections():vid=node.get_id()wid=w.get_id()print('(%s,%s,%s,%s)'%(vid,wid,node.get_weight(w),node.get_mode(w)))fornodeing:print('g.node_dict[%s]=%s'%(node.get_id(),g.node_dict[node.get_id()]))Installing the packagepip install mobility-graphInstalling Requirements$ pip install -U -r requirements.txtRoadmapThe objective of this tool is to contribute to a larger intermodal trip planning framework. For more info please check the thiswhitepaperContributionYou are welcome to create a pull request, for major changes and ideas to improve the framework feel free to open a discussion
or send me anemailto collaborate.LicenseThe MIT License (MIT)Copyright (c) 2020 Transport for Cairo (see LICENSE.txt)
Package: mobility-mapper
mobility-mapperThis app allows allows for the scoring of behavioral videos involving mobility (or any other binary behavior).The behavior state is stored for each frame of the video to allow for in depth analysis.Total time immobile and latency to immobility are calculated in the app, but the raw fame-wise state data can also be saved to excel for further analysis.This app is ideal for manual scoring of behaviors in preparation for training automated bahavior detection using machine learning andDeepLabCut.This app runs on python. If new to python, it is recommended to install Anaconda or Miniconda. This will install python along with common packages, and allow you to create isolated environments for each python app.Install Using Conda:conda create -n mobility -c researchgrant mobility_mapperTo run the app:conda activate mobility
python -m mobilitymapperInstall Using PIP:Create an environment with python 3.6 and install:pip install mobility-mapperHow to score a videoSelect "Load Video" and navigate to desired video. Enter a custom duration and press "Custom Time"(optional).Video will play automatically. When the animals begins the test, select "Start Experiment".Toggle between mobile and immobile using the button or hotkey 'M'.The slider can be used to revisit and revise previous sections of the video.When the timer reaches zero, total time immobile and latency to first immobility will be displayed.Enter an animal identifier and select save to excel to export the raw data.
Package: mobilizon-reshare
The goal ofmobilizon_reshareis to provide a suite to reshare Mobilizon events on a broad selection of platforms. This
tool enables an organization to automate their social media strategy in regards
to events and their promotion.Platformsmobilizon-resharecurrently supports the following social platforms:FacebookMastodonTwitterTelegramZulipUsageScheduling and temporal logicThe tool is designed to work in combination with a scheduler that executes it at
regular intervals.mobilizon_reshareallows fine-grained control over the logic to decide when
to publish an event, with the minimization of human effort as its first priority.Installationmobilizon_reshareis distributed throughPypiandDockerHub. Use$pipinstallmobilizon-reshareto install the tool in your system or virtualenv.This should install the commandmobilizon-resharein your system. Use it to access the CLI and discover the available
commands and their description.Guix packageIf you run Guix you can installmobilizon-reshareby adding ourGuix channelto your.config/guix/channels.scm.To runmobilizon-resharefrom master you can run the following command from the root of the repository:$guixtime-machine-Cchannels-lock.scm--install-L.mobilizon-reshare.gitRun on your local systemOnce you have installedmobilizon_reshareyou can schedule the refresh from Mobilizon with your system'scron:$sudocrontab-l
*/15****mobilizon-resharestartDeploying through Docker ComposeTo runmobilizon_resharein a production environment you can use the image published to DockerHub. We also provide an exampledocker-compose.yml.ContributingWe welcome contributions from anybody. Currently our process is not structured but feel free to open or take issues through Github in case you want to help us. We have setup some instructions to setup a development environmenthere.
Package: mobio-cli
Tool generate Mobio Python ProjectCopyright: MobioVNVersion:Phiên bản hiện tại1.0.8. XemchangelogCài đặt:pip3 install mobio-cliSử dụng:mobio-cliChangelog:v1.0.8:Cập nhật file .yaml (sửa name, image phần init-container)v1.0.7:Upgrade dependency mobio-base-sdk==1.0.14.Fix lỗi không scale-down script-init deployment.v1.0.6:Cập nhật theo quy định mới (thêm init-container).Fix lỗi tạo auth.verify_token.Thêm tham số generate ExampleController.v1.0.5:Cập nhật file .yaml (Thêm secretRef).Upgrade dependency mobio-base-sdk==1.0.13.v1.0.4:Cập nhật lại version trong README.v1.0.3:Tương thích với Mobio base SDK mới.SeeSửa lại format các file sinh tự động theo thống nhất họp mới nhất.Loại bỏ một số file (do đã được merge vào Base SDK): logging, lang_config, common/init,...v1.0.2:Phiên bản đầu tiên.
Package: mobio-dataout-sdk
Thư viện DATA OUT SDK dành cho các module cần out các event.Cài đặt:$pip3installmobio-dataout-sdkSử dụng:frommobio.sdks.dataoutimportDataOutDataOut().send(body,merchant_id,data_type,key_message)//body:dữliệujsoneventrawcủatừngmodule,dữliệunàychưađượcchuẩnhóatheođúngtàiliệuđịnhdạngmôtảevent.moduledataoutsẽchuẩnhóavềdữliệuchuẩncủatàiliệu//merchant_id:idmerchantphátsinhevent//data_type:mãeventđượcđặctảtrongtàiliệu//key_message:làkeymessagetheođốitượngnhưdeal_id,profile_id,...(cóthểkhôngtruyền)#### Log - 1.0.0-releasesdk#### Log - 1.0.1-giamtimeoutrequest#### Log - 1.0.2-trycatchsenddata#### Log - 1.0.3-bỏthamsốkeykhipushtinkafka#### Log - 1.0.4-chocácmodulethêmthamsốkeykhipushtinkafka
Package: mobio-dataout-sdk-test
Thư viện DATA OUT SDK dành cho các module cần out các event.Cài đặt:$pip3installmobio-dataout-sdkSử dụng:frommobio.sdks.dataoutimportDataOutDataOut().send(body,merchant_id,data_type,key_message)//body:dữliệujsoneventrawcủatừngmodule,dữliệunàychưađượcchuẩnhóatheođúngtàiliệuđịnhdạngmôtảevent.moduledataoutsẽchuẩnhóavềdữliệuchuẩncủatàiliệu//merchant_id:idmerchantphátsinhevent//data_type:mãeventđượcđặctảtrongtàiliệu//key_message:làkeymessagetheođốitượngnhưdeal_id,profile_id,...(cóthểkhôngtruyền)#### Log - 1.0.0-releasesdk#### Log - 1.0.1-giamtimeoutrequest#### Log - 1.0.2-trycatchsenddata#### Log - 1.0.3-bỏthamsốkeykhipushtinkafka#### Log - 1.0.4-chocácmodulethêmthamsốkeykhipushtinkafka
Package: mobio-dnc-sdk
Thư viện gọi api bên DNC.Cài đặt:$pip3installmobio-dnc-sdkSử dụng:1. Khởi tạo sdk:frommobio.sdks.dncimportMobioDNCSDKMobioDNCSDK().config(admin_host="",# admin hostredis_uri="",# redis urimodule_use="",# liên hệ admin để khai báo tên của modulemodule_encrypt="",# liên hệ admin để lấy mã)2. Kiểm tra 1 contact có trong spam :frommobio.sdks.dncimportMobioDNCSDKquery_search={"contact":"5361451387259452"}result=MobioDNCSDK().request_check_one_contact_spam(merchant_id,params=query_search,)"""{"code": 200,"data": {"contact": "5361451387259452","contact_type": "social","staff_id": "c0713108-7449-4bd6-86d5-1198b73495c7","social_page_id": "d59d4779-b707-4558-a594-4eb65f106ccc","social_type": 1,"page_name": "Mobio shop",},}"""3. Kiểm tra nhiều contact có trong spam :frommobio.sdks.dncimportMobioDNCSDKquery_search={"contact":"5361451387259452,0371234567"}result=MobioDNCSDK().request_check_many_contact_spam(merchant_id,params=query_search,)"""{"code": 200,"data": [{"contact": "5361451387259452","contact_type": "social","staff_id": "c0713108-7449-4bd6-86d5-1198b73495c7","social_page_id": "d59d4779-b707-4558-a594-4eb65f106ccc","social_type": 1,"page_name": "Mobio shop",},{"contact": "84371234567","contact_type": "phone","staff_id": "c0713108-7449-4bd6-86d5-1198b73495c7",},]}"""Log - 1.0.0- tạo sdkLog - 1.0.1- sửa cơ chế call api sang call trực tiếp db mongoLog - 1.0.2- update lib depend
Package: mobio-license-sdk
Thư viện license MobioCài đặt:$pip3installmobio-license-sdkSử dụng:1. Khởi tạo sdk:frommobio.sdks.licenseimportMobioLicenseSDKMobioLicenseSDK()Log - 1.0.1- tạo sdkLog - 1.0.2- init export class SDKLog - 1.0.3- thêm các hàm lấy thông số licenseLog - 1.0.4- thay đổi requirementsLog - 1.0.5- sửa import saiLog - 1.0.6- thêm cơ chế cache file license, tự động tải mới file sau 1 khoảng thời gianLog - 1.0.7- export các hàm mã hóa và giải mãLog - 1.0.8- Hàm kiểm tra merchant đã hết hạn chưaLog - 1.0.9- sửa lỗi lấy cache thông tin licenseLog - 1.0.10- nâng cấp version run cho python 3.8Log - 1.0.11- từ merchant truyền vào tìm merchant root để thực hiện các nghiệp vụ lấy thông tin licenseLog - 1.0.12- build wheels
Package: mobio-license-sdk-test
Thư viện license MobioCài đặt:$pip3installmobio-license-sdkSử dụng:1. Khởi tạo sdk:frommobio.sdks.licenseimportMobioLicenseSDKMobioLicenseSDK()Log - 1.0.1- tạo sdkLog - 1.0.2- init export class SDKLog - 1.0.3- thêm các hàm lấy thông số licenseLog - 1.0.4- thay đổi requirementsLog - 1.0.5- sửa import saiLog - 1.0.6- thêm cơ chế cache file license, tự động tải mới file sau 1 khoảng thời gianLog - 1.0.7- export các hàm mã hóa và giải mãLog - 1.0.8- Hàm kiểm tra merchant đã hết hạn chưaLog - 1.0.9- sửa lỗi lấy cache thông tin licenseLog - 1.0.10- nâng cấp version run cho python 3.8Log - 1.0.11- từ merchant truyền vào tìm merchant root để thực hiện các nghiệp vụ lấy thông tin licenseLog - 1.0.12- build wheels
Package: mobio-location-sdk
Thư viện Mobio Location SDKChangelog:v1.0.1:init SDKv1.0.2:Đặt thêm log các bước xử lýv1.0.3:Chuẩn hóa input theo chuẩn unicode trước khi tìm kiếmv1.0.4:Fix bug trường địa chỉ null
Package: mobio-location-sdk-test
Thư viện Mobio Location SDKChangelog:v1.0.1:init SDKv1.0.2:Đặt thêm log các bước xử lýv1.0.3:Chuẩn hóa input theo chuẩn unicode trước khi tìm kiếmv1.0.4:Fix bug trường địa chỉ null
Package: mobio-mail-client-sdk
Thư viện đọc email sử dụng core imap lib .Cài đặt:$pip3installmobio-mail-client-sdkLog - 0.1.0- tạo sdkLog - 0.1.1- cập nhật hàm đọc emailLog - 0.1.2- cập nhật hàm authen access tokenLog - 0.1.3- kiểm tra init folder mailboxLog - 0.1.4- Bỏ lru_cache của thư viện cũLog - 0.1.5- fix seen email inbox
Package: mobio-mail-client-sdk-test
Thư viện đọc email sử dụng core imap lib .Cài đặt:$pip3installmobio-mail-client-sdkLog - 0.1.0- tạo sdkLog - 0.1.1- cập nhật hàm đọc emailLog - 0.1.2- cập nhật hàm authen access tokenLog - 0.1.3- kiểm tra init folder mailboxLog - 0.1.4- Bỏ lru_cache của thư viện cũLog - 0.1.5- fix seen email inbox
Package: mobio-media-sdk
Thư viện Media.Cài đặt:$pip3installmobio-media-sdkLog:Version: 0.1.1: Thêm mobio token.Version: 0.1.2: Add json.dums by func finish_save_file_by_filepathVersion: 0.1.3: Add func get_path_by_url, get_binary_by_urlHướng dẫn sử dụng:func get_path_by_url -> kết quả trả về là path của url.frommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().get_path_by_url(url)func get_binary_by_url -> kết quả trả về là binary của urlfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().get_binary_by_url(url)Version: 0.1.4: Add func get_filename_by_urlHướng dẫn sử dụng:func get_filename_by_url -> kết quả trả về là filename của urlfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().get_filename_by_url(url)Version: 0.1.5: Delete system_configVersion: 0.1.6: Rename get_local_path_by_url -> get_path_by_urlVersion: 0.1.7: Option read file "r" -> "rb"Version: 0.1.8: Update lại token call từ AdminVersion: 0.1.9: Bổ sung tính năng:Tạo public link khi chưa có file upload.frommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().create_public_url_without_file(merchant_id="merchant_id",filename="filename",mimetype_str="mimetype_str")result={'url':'','local_path':'','filename':''}Sau khi xử lý nghiệp vụ xong có thể dùng func sau để Lưu file được lấy path từ URLfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().finish_save_file_by_public_url(filepath="filepath",url="url")Thêm optionfile_bytekhi upload file. Option này phục vụ cho nhu cầu upload file bằng bytes.Version: 0.2.0: Bổ sung option display, group_idsVersion: 0.2.1: Bổ sung merchant_idVersion: 0.2.2: Sửa từ get public-host từ module media sang module Admin.Version: 0.2.2 và 0.2.3: Bổ sung phần tính dung lượng file khi trả về.Version: 0.2.5: Chuyển việc lấy public-host sang admin-sdkVersion: 0.2.6: Apply libs m-kafka-sdk-v2Version: 0.2.7: Bỏ m-kafka-sdkVersion: 0.2.8: Fix lỗi encode url với những tên file đặc biệtVersion: 0.2.9: Nâng cấp confluent_kafkaVersion: 0.2.10: Thêm get mimetype file_byteVersion: 0.2.11, 0.2.12: Bổ sung thêm tính năng lưu file định dạng byteVersion: 0.2.13: Bổ sung thêm phần validate định dạng file upload qua SDK. Nếu không truyền lên thì sẽ lấy mặc định của hệ thống.Hướng dẫn sử dụngfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().upload_without_kafka(merchant_id="",file_path='/media/data/folder/tmp/example.jpg',filename='example.jpg',do_not_delete=True,extension_isvalid=["png"])result={"url":"","local_host":"","filename":""}Version: 0.2.14: Bổ sung thêm cấu hình kafka_bootstrap_servers trong config, cho phép nhập thông tin kafka_brokers. Nếu không nhập option này sẽ tự động lấy từ ENV KAFKA_BROKERSHướng dẫn sử dụngfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().config(redis_uri="",admin_host="",cache_prefix="",kafka_bootstrap_servers=os.environ.get("KAFKA_BROKERS"))
Package: mobio-media-sdk-test
Thư viện Media.Cài đặt:$pip3installmobio-media-sdkLog:Version: 0.1.1: Thêm mobio token.Version: 0.1.2: Add json.dums by func finish_save_file_by_filepathVersion: 0.1.3: Add func get_path_by_url, get_binary_by_urlHướng dẫn sử dụng:func get_path_by_url -> kết quả trả về là path của url.frommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().get_path_by_url(url)func get_binary_by_url -> kết quả trả về là binary của urlfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().get_binary_by_url(url)Version: 0.1.4: Add func get_filename_by_urlHướng dẫn sử dụng:func get_filename_by_url -> kết quả trả về là filename của urlfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().get_filename_by_url(url)Version: 0.1.5: Delete system_configVersion: 0.1.6: Rename get_local_path_by_url -> get_path_by_urlVersion: 0.1.7: Option read file "r" -> "rb"Version: 0.1.8: Update lại token call từ AdminVersion: 0.1.9: Bổ sung tính năng:Tạo public link khi chưa có file upload.frommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().create_public_url_without_file(merchant_id="merchant_id",filename="filename",mimetype_str="mimetype_str")result={'url':'','local_path':'','filename':''}Sau khi xử lý nghiệp vụ xong có thể dùng func sau để Lưu file được lấy path từ URLfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().finish_save_file_by_public_url(filepath="filepath",url="url")Thêm optionfile_bytekhi upload file. Option này phục vụ cho nhu cầu upload file bằng bytes.Version: 0.2.0: Bổ sung option display, group_idsVersion: 0.2.1: Bổ sung merchant_idVersion: 0.2.2: Sửa từ get public-host từ module media sang module Admin.Version: 0.2.2 và 0.2.3: Bổ sung phần tính dung lượng file khi trả về.Version: 0.2.5: Chuyển việc lấy public-host sang admin-sdkVersion: 0.2.6: Apply libs m-kafka-sdk-v2Version: 0.2.7: Bỏ m-kafka-sdkVersion: 0.2.8: Fix lỗi encode url với những tên file đặc biệtVersion: 0.2.9: Nâng cấp confluent_kafkaVersion: 0.2.10: Thêm get mimetype file_byteVersion: 0.2.11, 0.2.12: Bổ sung thêm tính năng lưu file định dạng byteVersion: 0.2.13: Bổ sung thêm phần validate định dạng file upload qua SDK. Nếu không truyền lên thì sẽ lấy mặc định của hệ thống.Hướng dẫn sử dụngfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().upload_without_kafka(merchant_id="",file_path='/media/data/folder/tmp/example.jpg',filename='example.jpg',do_not_delete=True,extension_isvalid=["png"])result={"url":"","local_host":"","filename":""}Version: 0.2.14: Bổ sung thêm cấu hình kafka_bootstrap_servers trong config, cho phép nhập thông tin kafka_brokers. Nếu không nhập option này sẽ tự động lấy từ ENV KAFKA_BROKERSHướng dẫn sử dụngfrommobio.sdks.media.mobio_media_sdkimportMobioMediaSDKMobioMediaSDK().config(redis_uri="",admin_host="",cache_prefix="",kafka_bootstrap_servers=os.environ.get("KAFKA_BROKERS"))
Package: mobio-restart-pod
A. Chức năngCopy file config restart pod consumer kafkaB. Cài đặtpython3.8 -m mobio_restart_pod <group_name>Change logVersion: 0.1.2 : Copy file config restart pod consumer kafkapython3 -m mobio_restart_podVersion: 0.2.1 : Support liveness call libThêm đoạn sau vào YAML consumercd <root_folder_project>; python3.8 -m mobio_restart_pod <group_name>
Package: mobipy
mobipy is a Python 3 library for analyzing user movement patterns from geolocated data.mobipy brings together metrics and functions frequently used to calculate user mobility patterns. It was developed with a focus on usability and compatibility with multiple data sets, facilitating the tasks of research and data analysis.Mobipy is tested against Python 3.6 and 3.7.InstallationInstall usingpipwith:pip install mobipyOr,download a wheel or source archive from PyPI.Available metricsRadius of gyration;Home detection;User displacement distance;Group by closeness;Activity centers;Using mobipy metricsdataIdentifier = Identifier("latitude", "longitude", "local_time", "start_time", "end_time", "item_id")
path = "data.csv"
dataframe = pd.read_csv(path)
result = metrics.radius_of_gyration(dataframe=dataframe,  ##use keyword parameters
                                        				 dataIdentifier=dataIdentifier, 
                                        				 selector= Selector())