copycats 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -7
- data/lib/copycats/data.rb +1 -1
- data/lib/copycats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 193a7fca413f909c49b164c401c759c59558b588
|
|
4
|
+
data.tar.gz: d17d5bfcdc7b4a33326bae50f242e63d6a9cd3f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38214f3ca5802623507c017de1301aeba073fa7a2f2a69305ca999a5202531f4fa2936069e5fabe1f8602ae60092d710f7606644b50862590d336f9b50c1e1a1
|
|
7
|
+
data.tar.gz: c24978227a5dfe9b53010b66cc9cbf25b0798df20398865ee69982a61b886bb62f7db4c0eb34e3fc70c12c9e47aa12fa6b23e9d5d94cccede5ead4b841f183ee
|
data/README.md
CHANGED
|
@@ -16,15 +16,15 @@ copycats command line tool (and core library) - crypto cats / kitties collectibl
|
|
|
16
16
|
|
|
17
17
|
Use the `kitty` command line tool to (auto-)read kitty data records
|
|
18
18
|
(in comma-separated values (CSV)) into an in-memory SQLite database
|
|
19
|
-
and print reports. Example - [`
|
|
19
|
+
and print reports. Example - [`kitties/1-99_999/000.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/000.csv):
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
id,gen,
|
|
23
|
-
1,0,
|
|
24
|
-
2,0,
|
|
25
|
-
3,0,
|
|
26
|
-
4,0,
|
|
27
|
-
5,0,
|
|
22
|
+
id,gen,matron_id,sire_id,birthdate,genes,name
|
|
23
|
+
1,0,,,2017-11-23 06:19:59,ccac 7787 fa7f afaa 1646 7755 f9ee 4444 6766 7366 cccc eede,
|
|
24
|
+
2,0,,,2017-11-23 06:19:59,ca9c 7575 f442 af9g 6664 5557 7777 4444 6686 8667 cccc ffec,
|
|
25
|
+
3,0,,,2017-11-23 06:19:59,ac9a 6686 ff7f 99aa 6666 5575 779f 4444 6786 7748 cccc dcfc,
|
|
26
|
+
4,0,,,2017-11-23 06:19:59,ccac 5686 22ff f99g 1616 7555 ffed 4444 8668 4687 cccc dcff,
|
|
27
|
+
5,0,,,2017-11-23 06:19:59,ca9c 8777 747f g99g 4411 7775 f77d 4444 7788 6377 cccc ffef,
|
|
28
28
|
...
|
|
29
29
|
```
|
|
30
30
|
|
|
@@ -33,6 +33,7 @@ get (auto-)read. Use the `-i/--include` option to change the data directory.
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
### Kitty Genes Reader / Report
|
|
37
38
|
|
|
38
39
|
Pass in the id (e.g. `1`, `43`, etc.) of the kitty to print a genes report.
|
|
@@ -247,6 +248,22 @@ Mouth (Genes 32-35)
|
|
|
247
248
|
|
|
248
249
|
|
|
249
250
|
|
|
251
|
+
## Datasets
|
|
252
|
+
|
|
253
|
+
[(Crypto) Kitties on the Blockchain](https://github.com/openblockchains/kitties) -
|
|
254
|
+
public dataset in comma-separated values (CSV) format in blocks of a thousand kitties each (e.g.
|
|
255
|
+
[`000.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/000.csv) incl. 1-999,
|
|
256
|
+
[`001.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/001.csv) incl. 1000-1999,
|
|
257
|
+
[`002.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/002.csv) incl. 2000-2999,
|
|
258
|
+
and so on). The data records for kitties incl. id, gen(eration), matron+sire ids, birthdate, 48 (12x4) genes in kai (base32) notation, and more.
|
|
259
|
+
|
|
260
|
+
[(Crypto) Kittydex Kitty Data](https://cryptokittydex.com/resources) - public dataset in comma-separated values (CSV) format in a single file (+250 MiB).
|
|
261
|
+
The data records for kitties incl. id, gen(eration), matron+sire ids, birthdate, 48 (12x4) genes in kai (base32) notation, and more.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
Add your dataset here!
|
|
265
|
+
|
|
266
|
+
|
|
250
267
|
|
|
251
268
|
## Installation - I Can Has Copycats?
|
|
252
269
|
|
data/lib/copycats/data.rb
CHANGED
|
@@ -87,7 +87,7 @@ def setup( data_dir: './data' )
|
|
|
87
87
|
k = Copycats::Model::Kitty.new
|
|
88
88
|
k.id = row['id'].to_i
|
|
89
89
|
k.gen = row['gen'].to_i
|
|
90
|
-
k.genes = row['genes_kai']
|
|
90
|
+
k.genes = (row['genes'] || row['genes_kai'] || '').gsub( ' ', '' ) ## remove all spaces - why? why not?
|
|
91
91
|
## pp k
|
|
92
92
|
|
|
93
93
|
## print ids for progress report - why? why not?
|
data/lib/copycats/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: copycats
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gerald Bauer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|