{"id":28417460,"url":"https://github.com/ua-parser/uap-cpp","last_synced_at":"2025-10-11T12:11:47.541Z","repository":{"id":23031846,"uuid":"26384599","full_name":"ua-parser/uap-cpp","owner":"ua-parser","description":"C++ implementation of ua-parser","archived":false,"fork":false,"pushed_at":"2025-07-13T14:29:05.000Z","size":114,"stargazers_count":39,"open_issues_count":2,"forks_count":34,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-09-25T12:33:05.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ua-parser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-11-09T04:07:30.000Z","updated_at":"2025-07-13T14:29:08.000Z","dependencies_parsed_at":"2024-04-15T05:45:43.288Z","dependency_job_id":"198dff64-c06d-42a0-8604-7494c35da2c4","html_url":"https://github.com/ua-parser/uap-cpp","commit_stats":{"total_commits":94,"total_committers":12,"mean_commits":7.833333333333333,"dds":"0.26595744680851063","last_synced_commit":"05796295949028dbd0db4e476c143fd372c68fbd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ua-parser/uap-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ua-parser","download_url":"https://codeload.github.com/ua-parser/uap-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007140,"owners_count":26084246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-04T05:43:20.854Z","updated_at":"2025-10-11T12:11:47.536Z","avatar_url":"https://github.com/ua-parser.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"ua_parser C++ Library\n=====================\n\nUsage\n-----\n\nA recent (GCC \u003e= 5.4 or Clang \u003e= 3.9 both work) C++14 compiler is required.\n\n#### CMake build\n\n##### libraries\n\n    cd uap-cpp\n    mkdir build\n    cd build\n    cmake ..\n    \n    make uap-cpp-static\n    \n    make uap-cpp-shared\n\n##### tests\nPrepare gtest:\n\n    apt-get install libgtest-dev\n    apt-get install cmake\n    cd /usr/src/gtest\n    cmake CMakeLists.txt\n    make\n    cp *.a /usr/lib\n\nRun from build directory:\n\n    make test\n\nRun from uap-cpp directory:\n\n    ./build/uap-cpp-tests\n\n##### benchmark\nRun from build directory:\n\n    make bench\n\nRun from uap-cpp directory:\n\n    time ./build/UaParserBench uap-core/regexes.yaml benchmarks/useragents.txt 1000\n\n### Windows\n\nFirst, open ``uap-cpp.sln`` with MSVC 15 (Visual Studio 2017).\n\nTo build the (static) library:\n\n    build the \"UaParser\" project\n\nTo build and run the tests:\n\n    build the \"UaParserTest\" project\n\nThe MSVC projects assume boost to be installed at: ``C:\\boost_1_69_0`` and yaml to be installed at: ``C:\\yaml-cpp``. Change these paths if needed. ``boost_regex`` needs to be built from source in advance. For yaml-cpp, you can built it from source, or use a prebuilt [here](https://github.com/hsluoyz/yaml-cpp-prebuilt-win32).\n\nDependencies\n------------\n\n* re2, yaml-cpp (\u003e=0.5)\n* gtest (for testing)\n* [uap-core](https://github.com/ua-parser/uap-core), same directory level as uap-cpp. You can clone this repo with --recurse-submodules to get it. Alternatively, run `git submodule update --init`.\n\nContributing\n------------\n\nPull requests are welcome. Use `clang-format -i *.cpp *.h` to format the sources before sending the patch.\n\nCredits\n-------\n\nInspired from the D implementation by Shripad K and using agent data from BrowserScope.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fua-parser%2Fuap-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fua-parser%2Fuap-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fua-parser%2Fuap-cpp/lists"}