Skip to content
/ e6.cr Public

A fast, simple, and easy-to-use e621/e926 client written in Crystal.

License

Notifications You must be signed in to change notification settings

altlanta/e6.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e6.cr

A fast, simple, and easy-to-use e621/e926 client written in Crystal.

(also my first Crystal project)

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  e6:
    github: altlanta/e6.cr
  1. Run shards install

Usage

An example of getting a single post.

require "e6"

e6c = Client.new
post = e6c.get_post(1011510)

if post
  puts post.rating # => "s"
  puts post.first_artist # => "huiro"
end

Progress

At the moment, only the most basic functionality is implemented. The e6 API is very convoluted, so implementing more of these might take some time.

Additionally, a CLI wrapper is in the works.

Contributing

  1. Fork it (https://github.com/altlanta/cr-e6client/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Notes

To clarify the name, "e6.cr" is the proper name of this lib. However, to prevent redundancy in file naming, the technical name is simply "e6". (since .cr is the common file extension)

About

A fast, simple, and easy-to-use e621/e926 client written in Crystal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published