패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.0

bible

단일 위치에서 여러 성경 API와 상호 작용할 수 있는 간단한 애플리케이션

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
101
좋아요
21
Pub 점수
130

패키지 설치

flutter pub add bible

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Bible 패키지는 단일 인터페이스를 통해 여러 성경 API에 통합적으로 접근할 수 있는 Flutter/Dart 라이브러리입니다. 다양한 성경 데이터 소스와의 통합을 간소화하여 개발자가 성경 구절을 가져오고, 텍스트를 검색하며, 메타데이터를 효율적으로 얻을 수 있도록 도와줍니다. 크로스플랫폼 사용을 위해 설계되어 Android, iOS, Web, macOS, Windows, Linux를 모두 지원합니다. API 차이점을 추상화하여 성경 콘텐츠를 질의하는 일관된 방법을 제공하므로, 종교 기반 앱, 학습 도구 또는 영적 플랫폼에 적합합니다. `flutter pub add bible`를 통해 최소한의 설정으로 개발자는 애플리케이션에 풍부한 성경 콘텐츠를 신속하게 통합할 수 있습니다.

사용 사례

  • 성경 읽기 애플리케이션
  • 성경 인용 도구
  • 영적 기도 앱
  • 종교 교육 플랫폼
  • 크로스플랫폼 성경 통합

주요 기능

  • 통합 API 인터페이스
  • 여러 성경 출처 지원
  • 크로스 플랫폼 호환성
  • pub를 통한 간단한 설치
  • 일관된 데이터 검색 방법
  • 경량이며 통합이 쉬움

적합한 대상

  • 종교 앱을 개발하는 개발자
  • 교육 소프트웨어 제작자
  • 모바일 및 웹 애플리케이션 팀
  • 오픈소스 프로젝트 기여자
  • 성경 데이터가 필요한 앱

고려 사항

  • 외부 성경 API에 의존합니다
  • 레이트 제한 처리가 필요할 수 있습니다
  • 데이터 형식 일관성은 소스에 따라 다릅니다
  • 텍스트 기반 성경 검색에 제한됨
  • 내장 캐시 메커니즘이 없음
  • 데이터를 위해 인터넷 연결이 필요합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

bible

This package provides a simple interface for interacting with different bible APIs.

Usage

This package currently only supports querying these APIs:

Name Requires API key notes
esvapi yes
getbible no Does not support verse references that cross chapters. Genesis 2-3 ✅ Gensis 2:1 - 3:5 ❌
bibleorg no
bibleapi no

Simple example:

import 'package:bible/bible.dart' as Bible;
...
var passage = await Bible.queryPassage('John 3:16'); // Will default to the GetBible API
print(passage.passage) // The text from the query

An example requiring an API key:

Bible.addKeys({'esvapi': 'APITOKEN'});
var passage = await Bible.queryPassage('John 3:16', providerName:'esvapi');

You can also pass the API key as an optional parameter:

Bible.addKeys({'esvapi': 'APITOKEN'});
var passage = await Bible.queryPassage('John 3:16', key: 'APITOKEN');

You can also pass query parameters through a map. See specific API documentation for those parameters.

Bible.addKeys({'esvapi': 'APITOKEN'});
var passage = await Bible.queryPassage('John 3:16', key: 'APITOKEN', parameters: {'Map': 'of params'});

You can specify the version or provider with optional parameters.

var passage = await Bible.queryPassage('John 3:16', providerName: 'getbible', version: 'asv');

**Note:**The providerName coresponds to that in the table at the beginning of this documentation.

Every time a passage is queried, the reference_parser library tries to parse the query (i.e mispelling will automatically be corrected, shortened verse forms will be allowed). To prevent this just pass false to the useParser parameter.

var passage = await Bible.queryPassage('John 3:16', useParser: false);

If you import the providers library you can use can directly query every the providers or pass them to the queryPassage function as an optional parameter

import 'package:bible/bible.dart' as Bible;
import 'package:bible/providers.dart';
//...
var prov = GetBible();
var passage = await Bible.queryPassage('John 3:16', provider: prov);

This is the same as using the providerName parameter but if you were to create your own provider you could pass it to the function.

Note: If you create your own provider please consider contributing it back to the repository :).

Contributing

Implementing an API isn't hard, so I'm open to having people implementing and sending pull requests for different bible APIs. This is a great first issue and doesn't require extensive dart knowledge, just copy a provider already created and go from there!

APIs that need implementing:

Name Difficulty
nltapi easy
bibliaapi moderate
scriptureapi hard

For more specific information look at the contributing guidlines.

카테고리

의존성

의존성 목록 2 개

  • http^0.13.3
  • reference_parser^3.0.0

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.