GithubHelp home page GithubHelp logo

gonzalesmk / brcep Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leogregianin/brcep

0.0 1.0 0.0 1016 KB

:mailbox_with_no_mail: Quickly access zip code information using Sidecar Pattern to support API queries to ViaCEP, CEPAberto and Correios.

Home Page: https://hub.docker.com/r/leogregianin/brcep

License: MIT License

Go 97.70% Makefile 2.30%

brcep's Introduction

brcepgopher

brcep

API for accessing information from Brazilian CEPs. The central idea is not to be dependent on a specific API, but to have the ease of accessing brcep and it is in charge of consulting various sources and returning the CEP information quickly and easily.

Currently we support API queries to ViaCEP, CEPAberto and Correios. Your help is welcome to implement the CepApi interface and introduce new APIs support.

brcep

Package

I forked this repository to transform it in a package that to import directly into my golang projects, instead of using the original sidecar pattern.

Some other changes:

  • I removed the prefered API configuration. Instead, this library returns the result that comes first. (I just want it to be faster)
  • Removed cache and saved to dict (for most applications, ceps do not change, but could add this back latter on)
  • Removed most dependencies (i.e. logger and server, they have no use)
  • Renamed package handle to cep ( Applications should see this module as a cep)
  • and api to basecep


brcep's People

Contributors

amalj07 avatar dukex avatar ghophp avatar juniorabranches avatar leogregianin avatar zbeach avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.