{"id":13399685,"url":"https://github.com/apache/thrift","last_synced_at":"2025-05-12T17:47:08.886Z","repository":{"id":667435,"uuid":"310611","full_name":"apache/thrift","owner":"apache","description":"Apache Thrift","archived":false,"fork":false,"pushed_at":"2025-05-01T20:29:08.000Z","size":34591,"stargazers_count":10678,"open_issues_count":45,"forks_count":4055,"subscribers_count":456,"default_branch":"master","last_synced_at":"2025-05-05T15:11:59.870Z","etag":null,"topics":["actionscript","c","cplusplus","csharp","d","dart","http","library","network-client","network-server","thrift"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apache.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","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":"2009-09-18T08:00:17.000Z","updated_at":"2025-05-05T12:38:54.000Z","dependencies_parsed_at":"2024-05-02T08:40:56.054Z","dependency_job_id":"c3f0d3fb-f859-4df4-9a10-5c35840e1c5c","html_url":"https://github.com/apache/thrift","commit_stats":{"total_commits":6953,"total_committers":621,"mean_commits":11.19645732689211,"dds":0.8564648353228822,"last_synced_commit":"c8cf304919f31c2132e1aa64fea4dfa08fe1bed9"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fthrift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fthrift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fthrift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fthrift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/thrift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252522172,"owners_count":21761685,"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","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":["actionscript","c","cplusplus","csharp","d","dart","http","library","network-client","network-server","thrift"],"created_at":"2024-07-30T19:00:41.392Z","updated_at":"2025-05-05T15:12:42.449Z","avatar_url":"https://github.com/apache.png","language":"C++","readme":"Apache Thrift\n=============\n\nIntroduction\n============\n\nThrift is a lightweight, language-independent software stack for\npoint-to-point RPC implementation.\nThrift provides clean abstractions and implementations for data transport,\ndata serialization, and application level processing. The code generation\nsystem takes a simple definition language as input and generates code\nacross programming languages that uses the abstracted stack to build\ninteroperable RPC clients and servers.\n\n![Apache Thrift Layered Architecture](doc/images/thrift-layers.png)\n\nThrift makes it easy for programs written in different programming\nlanguages to share data and call remote procedures.  With support\nfor [28 programming languages](LANGUAGES.md), chances are Thrift\nsupports the languages that you currently use.\n\nThrift is specifically designed to support non-atomic version changes\nacross client and server code.  This allows you to upgrade your\nserver while still being able to service older clients; or have newer\nclients issue requests to older servers.  An excellent community-provided\nwrite-up about thrift and compatibility when versioning an API can be\nfound in the [Thrift Missing Guide](https://diwakergupta.github.io/thrift-missing-guide/#_versioning_compatibility).\n\nFor more details on Thrift's design and implementation, see the Thrift\nwhitepaper included in this distribution, or at the README.md file\nin your particular subdirectory of interest.\n\nStatus\n======\n\n| Branch | Travis | Appveyor | Coverity Scan | codecov.io | Website |\n| :----- | :----- | :------- | :------------ | :--------- | :------ |\n| [`master`](https://github.com/apache/thrift/tree/master) | [![Build Status](https://api.travis-ci.com/apache/thrift.svg?branch=master)](https://app.travis-ci.com/apache/thrift/branches) | [![Build status](https://ci.appveyor.com/api/projects/status/github/apache/thrift?branch=master\u0026svg=true)](https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/history) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/1345/badge.svg)](https://scan.coverity.com/projects/thrift) | | [![Website](https://img.shields.io/badge/official-website-brightgreen.svg)](https://thrift.apache.org/) |\n| [`0.17.0`](https://github.com/apache/thrift/tree/0.17.0) | [![Build Status](https://api.travis-ci.com/apache/thrift.svg?branch=0.17.0)](https://app.travis-ci.com/apache/thrift/branches) | | | | |\n\nReleases\n========\n\nThrift does not maintain a specific release calendar at this time.\n\nWe strive to release twice yearly.  Download the [current release](http://thrift.apache.org/download).\n\nLicense\n=======\n\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied. See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\nProject Hierarchy\n=================\n\nthrift/\n\n  compiler/\n\n    Contains the Thrift compiler, implemented in C++.\n\n  lib/\n\n    Contains the Thrift software library implementation, subdivided by\n    language of implementation.\n\n    cpp/\n    go/\n    java/\n    php/\n    py/\n    rb/\n    ...\n\n  test/\n\n    Contains sample Thrift files and test code across the target programming\n    languages.\n\n  tutorial/\n\n    Contains a basic tutorial that will teach you how to develop software\n    using Thrift.\n\nDevelopment\n===========\n\nTo build the same way Travis CI builds the project you should use docker.\nWe have [comprehensive building instructions for docker](build/docker/README.md).\n\nRequirements\n============\n\nSee http://thrift.apache.org/docs/install for a list of build requirements (may be stale).  Alternatively, see the docker build environments for a list of prerequisites.\n\nResources\n=========\n\nMore information about Thrift can be obtained on the Thrift webpage at:\n\n     http://thrift.apache.org\n\nAcknowledgments\n===============\n\nThrift was inspired by pillar, a lightweight RPC tool written by Adam D'Angelo,\nand also by Google's protocol buffers.\n\nInstallation\n============\n\nIf you are building from the first time out of the source repository, you will\nneed to generate the configure scripts.  (This is not necessary if you\ndownloaded a tarball.)  From the top directory, do:\n\n    ./bootstrap.sh\n\nOnce the configure scripts are generated, thrift can be configured.\nFrom the top directory, do:\n\n    ./configure\n\nYou may need to specify the location of the boost files explicitly.\nIf you installed boost in `/usr/local`, you would run configure as follows:\n\n    ./configure --with-boost=/usr/local\n\nNote that by default the thrift C++ library is typically built with debugging\nsymbols included. If you want to customize these options you should use the\nCXXFLAGS option in configure, as such:\n\n    ./configure CXXFLAGS='-g -O2'\n    ./configure CFLAGS='-g -O2'\n    ./configure CPPFLAGS='-DDEBUG_MY_FEATURE'\n\nTo enable gcov required options -fprofile-arcs -ftest-coverage enable them:\n\n    ./configure  --enable-coverage\n\nRun ./configure --help to see other configuration options\n\nPlease be aware that the Python library will ignore the --prefix option\nand just install wherever Python's distutils puts it (usually along\nthe lines of `/usr/lib/pythonX.Y/site-packages/`).  If you need to control\nwhere the Python modules are installed, set the PY_PREFIX variable.\n(DESTDIR is respected for Python and C++.)\n\nMake thrift:\n\n    make\n\nFrom the top directory, become superuser and do:\n\n    make install\n\nUninstall thrift:\n\n    make uninstall\n\nNote that some language packages must be installed manually using build tools\nbetter suited to those languages (at the time of this writing, this applies\nto Java, Ruby, PHP).\n\nLook for the README.md file in the lib/\u003clanguage\u003e/ folder for more details on the\ninstallation of each language library package.\n\nPackage Managers\n================\n\nApache Thrift is available via a number of package managers, a list which is\nis steadily growing. A more detailed overview can be found\n[at the Apache Thrift web site under \"Libraries\"](http://thrift.apache.org/lib/)\nand/or in the respective READMEs for each language under /lib\n\nTesting\n=======\n\nThere are a large number of client library tests that can all be run\nfrom the top-level directory.\n\n    make -k check\n\nThis will make all of the libraries (as necessary), and run through\nthe unit tests defined in each of the client libraries. If a single\nlanguage fails, the make check will continue on and provide a synopsis\nat the end.\n\nTo run the cross-language test suite, please run:\n\n    make cross\n\nThis will run a set of tests that use different language clients and\nservers.\n\n\n","funding_links":[],"categories":["C++","Official","Real-World Projects","网络服务","开发框架","RPC Frameworks","Repos","c","RPC框架"],"sub_categories":["Data Processing \u0026 Storage","网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fthrift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fthrift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fthrift/lists"}