e6

Version, currently main branch1 version
  • main branchlatestJul 14, 2021

github.com/altlanta/e6.cr

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

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  e6:
    github: altlanta/e6.cr
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.0.0
License
MIT
Author
altlanta

Dependencies

This version declares no dependencies.

README

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)