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.
Installation
# Add this to your shard.yml
dependencies:
e6:
github: altlanta/e6.cr
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.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
- Add the dependency to your
shard.yml:
dependencies:
e6:
github: altlanta/e6.cr
- 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.
- [ ] Create post
- [ ] Update post
- [x]
Client#list_postsList posts - [x]
Client#get_postGet single post - [x]
Client#list_flagsList flags - [ ] Create flag
- [ ] Vote on post
- [ ] List favorites
- [ ] Create favorites
- [ ] Delete favorites
- [x]
Client#list_tagsList tags - [ ] List tag aliases
- [ ] List notes
- [ ] Create notes
- [ ] Update notes
- [ ] Delete notes
- [ ] Revert notes
- [ ] List pools
- [ ] Create pools
- [ ] Update pools
- [ ] Revert pools
Additionally, a CLI wrapper is in the works.
Contributing
- Fork it (https://github.com/altlanta/cr-e6client/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- altlanta - creator and maintainer
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)
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Jul 14, 2021
- Crystal
1.0.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/altlanta/e6.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1