Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1161/fixes summary missing required field info #1192

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
545 commits
Select commit Hold shift + click to select a range
cdf7f79
Fixed some linting errors
roll Jul 2, 2022
0468cee
Renamed create_resource -> detect_resource
roll Jul 2, 2022
d0fbbff
Fixed resource.__create__
roll Jul 2, 2022
bb85b02
Rebased on resource.type and profiles
roll Jul 2, 2022
661ad0f
Removed unused profiles
roll Jul 2, 2022
c20e7ea
Fixed stats in infer
roll Jul 2, 2022
279299c
Recovered resource tests
roll Jul 2, 2022
53fb04e
Improved package.__create__
roll Jul 2, 2022
d960c6e
Fixed some tests
roll Jul 2, 2022
cd7e2b0
Recovered more tests
roll Jul 2, 2022
c6a7e36
Recovered package tests
roll Jul 2, 2022
8be80ab
Merge pull request #1153 from frictionlessdata/944/simplify-metadata
roll Jul 2, 2022
9bbfdf8
Merge pull request #1154 from frictionlessdata/944/simplify-metadata
roll Jul 2, 2022
694721f
Added hashing inheritance package -> resource
roll Jul 2, 2022
610a145
Added dialect package -> resource inheritance
roll Jul 2, 2022
a31c245
Rebased Pipeline on dataclass
roll Jul 2, 2022
b19c03d
Rebased checklist on dataclass
roll Jul 2, 2022
0d36fb3
Synced connect style
roll Jul 2, 2022
74c3615
Fixed metadata.__repr__
roll Jul 2, 2022
4a4e361
Removed not neded package/resource inheritance
roll Jul 3, 2022
7f3b7c0
Split resource class into multiple files
roll Jul 3, 2022
539b30e
Split package class into multiple files
roll Jul 3, 2022
6854533
Fixed sources/contributors validation
roll Jul 3, 2022
7f28565
Recovered checks
roll Jul 3, 2022
ddb3444
Recovered detector tests
roll Jul 3, 2022
583daee
Recovered validate general
roll Jul 4, 2022
fed1693
Recovered validate resource checklist
roll Jul 4, 2022
2c6b0fc
Recovered resource compression validate
roll Jul 4, 2022
4ea1fcc
Recovered resource validate dialect
roll Jul 4, 2022
c935834
Recovered resource validate encoding
roll Jul 4, 2022
0110316
Recovered resource validate format
roll Jul 4, 2022
6463f41
Recovered resource validate schema
roll Jul 4, 2022
0cb1c03
Recovered resource validate scheme
roll Jul 4, 2022
80e1a37
Recovered resource validate stats
roll Jul 4, 2022
f0ea4bf
Recovered resource describe skip
roll Jul 4, 2022
e0e7aea
Recovered resource extract tests
roll Jul 4, 2022
5cea167
Recovered resource transform tests
roll Jul 4, 2022
af75158
Renamed Problems to Bugs -- test comment
roll Jul 4, 2022
6a14b66
Recovered system tests
roll Jul 4, 2022
1d3ce75
Recovered metadata tests
roll Jul 4, 2022
47ed787
Recovered more tests
roll Jul 4, 2022
50ad70d
Recovered table tests
roll Jul 4, 2022
98e2748
Recovered schema tests
roll Jul 4, 2022
b6df3e6
Recovered cell/field steps
roll Jul 4, 2022
69a8127
Recovered resource step tests
roll Jul 4, 2022
2144399
Recovered row step tests
roll Jul 4, 2022
aff3eaa
Recovered report tests
roll Jul 4, 2022
fcd1ac5
Recovered step tests
roll Jul 4, 2022
782f4b2
Fixed package.validate
roll Jul 4, 2022
b79541c
Recovered Inqiury tests
roll Jul 4, 2022
7f3e123
Recovered formats tests
roll Jul 4, 2022
a8d970e
Fixed csv header writing
roll Jul 4, 2022
5a68a14
Recovered csv write tests
roll Jul 4, 2022
2981e3b
Improved csv parser
roll Jul 4, 2022
dd6f1b2
Recovered excel write
roll Jul 4, 2022
be2cefe
Recovered json tests
roll Jul 4, 2022
efb2213
Recovered html tests
roll Jul 4, 2022
d5f19f4
Fixed gsheets writing
roll Jul 4, 2022
f99fe15
Recovered ods writing
roll Jul 4, 2022
d065297
Recovered inline writing
roll Jul 4, 2022
e245ce9
Updated sqlite tests
roll Jul 4, 2022
8e26fac
Improved metadata.metadata_defaults
roll Jul 5, 2022
48489f1
Recovered detector tests
roll Jul 5, 2022
df94bf3
Added internal detect methods to resource
roll Jul 5, 2022
37b0636
Maked plugins responsible for resource.type
roll Jul 5, 2022
621b699
Recovered dialect tests
roll Jul 5, 2022
84234e1
Recovered xls tests
roll Jul 5, 2022
10a21d7
Recovered xlsx tests
roll Jul 5, 2022
ff5cd90
Fixed sync_schema logic
roll Jul 5, 2022
8022645
Fixed csv tests
roll Jul 5, 2022
d8fc7fc
Added support for mediatype
roll Jul 5, 2022
c806894
Recovered ckan tests
roll Jul 5, 2022
30745bc
Recovered bigquery tests
roll Jul 5, 2022
5a5244e
Recovered spss tests
roll Jul 5, 2022
e5f0cd4
Improved helpers
roll Jul 5, 2022
bf97952
Recovered pandas tests
roll Jul 5, 2022
ca2d6ab
Fixed mediatype in profile
roll Jul 5, 2022
32c2525
Recovered fields tests
roll Jul 5, 2022
2d7ff14
Recovered sqlite tests
roll Jul 5, 2022
6377a21
Recovered postgresql tests
roll Jul 5, 2022
09b5d2f
Recovered mysql tests
roll Jul 5, 2022
651fe15
Recovered schemes tests
roll Jul 5, 2022
bddbb41
Recovered multipart
roll Jul 6, 2022
0d2139c
Recovered s3 tests
roll Jul 6, 2022
c61db32
Renamed s3 plugin to aws
roll Jul 6, 2022
9902ede
Recovered inquiry tests
roll Jul 6, 2022
44fe120
Recovered table tests
roll Jul 6, 2022
4ff5801
Recovered report tests
roll Jul 6, 2022
0e634fd
Simplified InquiryTask
roll Jul 6, 2022
db2d0ac
Added system.standards_version
roll Jul 6, 2022
d4f6c27
Recovered unzip_descriptor
roll Jul 6, 2022
e40154b
Added v1-compat level to Package/Resource/Schema
roll Jul 6, 2022
201441c
Recovered general package tests
roll Jul 6, 2022
b2b2569
Recovered package convert tests
roll Jul 6, 2022
0b0df24
Uncommented package tests
roll Jul 6, 2022
1f32b6f
Merge branch 'main' into v5
roll Jul 6, 2022
d8455f5
Recovered schema convert
roll Jul 6, 2022
0c7f423
Recovered schema tests
roll Jul 6, 2022
1534506
Fixed formats/inquiry tests
roll Jul 6, 2022
9833040
Recovered describe actions
roll Jul 7, 2022
cff74bf
Recovered extract actions
roll Jul 7, 2022
79bfdda
Recovered validate actions
roll Jul 7, 2022
0efdfaf
Recovered transform actions
roll Jul 7, 2022
040c8f0
Fixed last actions tests
roll Jul 7, 2022
57b8e4a
Xfailed last actions
roll Jul 7, 2022
150c470
Recovered package tests
roll Jul 7, 2022
e104b38
Added support for custom metadata
roll Jul 7, 2022
0e3ff4b
Fixed error.to_descriptor
roll Jul 7, 2022
20a9035
Recovered package tests
roll Jul 7, 2022
1f22043
Recovered program.describe
roll Jul 7, 2022
727990f
Fixed metadata
roll Jul 7, 2022
b4f07d3
Added sample argument to infer
roll Jul 8, 2022
96931ba
Recovered program.extract
roll Jul 8, 2022
238a702
Recovered program.extract tests
roll Jul 8, 2022
979540a
Fixed resource's lookup
roll Jul 8, 2022
b3816ff
Recovered program.validate
roll Jul 8, 2022
8755573
Recovered program.validate tests
roll Jul 8, 2022
760d4cd
Recovered program.summary tests
roll Jul 8, 2022
c32497a
Recovered program tests
roll Jul 8, 2022
35d9a46
Merge branch 'main' into v5
roll Jul 8, 2022
4e289fa
Fixed report tests
roll Jul 8, 2022
4f0e18c
Xfailed failing tests
roll Jul 8, 2022
d93118c
Recovered resource.compression tests
roll Jul 8, 2022
82cf8e7
Recovered resource.convert tests
roll Jul 8, 2022
9481353
Recovered resource.detector tests
roll Jul 8, 2022
a2c981e
Recovered resource.dialect tests
roll Jul 8, 2022
c2214c4
Recovered resource.format tests
roll Jul 8, 2022
0e59628
Recover resource.general tests
roll Jul 8, 2022
866ac41
Recovered resource.infer tests
roll Jul 8, 2022
64bb7b3
Recovered resource.onerror tests
roll Jul 8, 2022
07191ed
Recovered resource.open tests
roll Jul 8, 2022
dde85fc
Recovered resource.read tests
roll Jul 8, 2022
6f76892
Recovered resource.schema tests
roll Jul 8, 2022
4a29330
Recovered resource.write tests
roll Jul 8, 2022
31669d9
Recovered resoruce methods tests
roll Jul 8, 2022
346e0e7
Recovered resource.validate tests
roll Jul 8, 2022
6b5b6dd
Recovered resource tests
roll Jul 8, 2022
42ef78a
Recovered package test
roll Jul 8, 2022
63342d0
Rebased steps tests on xfail
roll Jul 8, 2022
c731938
Recovered linting
roll Jul 8, 2022
4cee4c3
Skipped failing type checks for now
roll Jul 8, 2022
9cd1c20
Recovered CI tests
roll Jul 8, 2022
519b2d7
Fixed linting
roll Jul 8, 2022
6456275
Fixed tests
roll Jul 8, 2022
4b485b8
Disable windown testing
roll Jul 8, 2022
f7e89ed
Fixed CI
roll Jul 8, 2022
59b827b
Returned windows to CI
roll Jul 9, 2022
ea92096
Added TODO
roll Jul 9, 2022
2f27531
Fixed table dimensions check
roll Jul 9, 2022
64c6f2f
Added csv/excel/json to the core deps
roll Jul 9, 2022
cb2b257
Rebased on helpers.import_from_extras
roll Jul 9, 2022
c1a299d
Added todos
roll Jul 9, 2022
95b7c12
Added infer to package.to_er_diagram
roll Jul 9, 2022
5a43dbf
Returned metadata_export/import
roll Jul 9, 2022
ad430b7
Removed plugin.code for now
roll Jul 9, 2022
7d3f51e
Removed limitMemory
roll Jul 9, 2022
1dfbb39
Reworked limit_row/errors
roll Jul 9, 2022
c5e8c8c
Renamed "original" to "strict"
roll Jul 9, 2022
dc0468a
Added multipart support to resource.place
roll Jul 9, 2022
4f58080
Rebased on reportTask.type
roll Jul 9, 2022
7defb8d
Added inquiryTask.type
roll Jul 9, 2022
94e9611
Added debug to CLI
roll Jul 9, 2022
53c825d
Added standards option to program.describe
roll Jul 9, 2022
7aab9f0
Added a TODO
roll Jul 9, 2022
282650a
Fixed resource.metadata_export
roll Jul 10, 2022
59cae85
Improved parser.write_row_stream API
roll Jul 10, 2022
359a445
Renamed list_stream to cell_stream
roll Jul 10, 2022
8b92336
Removed version from report
roll Jul 10, 2022
337330f
Improved program.validate
roll Jul 10, 2022
02cffba
Added package/schema.flatten()
roll Jul 10, 2022
344caa7
Rebased on metadata.metadata_Types
roll Jul 10, 2022
c3f8d25
Removed metadata_properties
roll Jul 11, 2022
b1d98ce
Rebased row reading on cell readers
roll Jul 11, 2022
3652f67
Added markfown option to frictionless describe
roll Jul 11, 2022
da65e23
Implemented checks option for program.validate
roll Jul 11, 2022
4324964
Added steps options to program.transform
roll Jul 11, 2022
85cf582
Reworked dialect descriptor
roll Jul 12, 2022
79f6dfe
Reworked dialect
roll Jul 12, 2022
278035a
Improved tests
roll Jul 12, 2022
4c467de
Added support for v1 dialect.[csv] props
roll Jul 12, 2022
778d9e7
Added support for resource.layout (v1.5)
roll Jul 12, 2022
ad18c7c
Fixed linting
roll Jul 12, 2022
d345ebd
Supported dialect to v1 export
roll Jul 12, 2022
8a6e4e4
Apply comment char only to strings
roll Jul 12, 2022
616faca
Renamed check/error.code -> type
roll Jul 12, 2022
3472330
Renamed control.code -> type
roll Jul 12, 2022
9fb4f33
Renamed step.code -> type
roll Jul 12, 2022
afe70f9
Added dialect/control.name
roll Jul 12, 2022
6421249
Started adding name to Checklist/Check
roll Jul 12, 2022
0745159
Added name/title/descriptor for Checklist/Check
roll Jul 13, 2022
27ac9ec
Added name/title/description to Detector
roll Jul 13, 2022
4aebc3c
Added name/title/description to Dialect
roll Jul 13, 2022
a0fb78b
Added name/title/description to Inquiry
roll Jul 13, 2022
8743457
Added name/title/description to Schema
roll Jul 13, 2022
156956d
Added name/title/description to Report
roll Jul 13, 2022
02173d6
Added name/title/description to Pipeline/Step
roll Jul 13, 2022
385b209
Renamed error.name -> title
roll Jul 13, 2022
961f92f
Fixed tests
roll Jul 13, 2022
2be636a
Added jsonmerge
roll Jul 13, 2022
003234a
Migrated checks/controls to metadata_merge
roll Jul 13, 2022
fa4d06c
Rebased on metadata_profile_patch
roll Jul 13, 2022
f5ea880
Rebased errors on metadata_profile_patch
roll Jul 13, 2022
70cb48d
Rebased steps on metadata_profile_patch
roll Jul 13, 2022
2c411ff
Improved Metadata
roll Jul 13, 2022
07dd677
Rebase resource validation on metadata_profile
roll Jul 13, 2022
16e35c9
Rebased package validateion on metadata_profile
roll Jul 13, 2022
67df936
Rebased schema validation on metadata_profile
roll Jul 13, 2022
c07d29f
Rebased field validation on metadata_profile
roll Jul 13, 2022
5a6e90b
Rebased fields validation on metadata_profile
roll Jul 14, 2022
11e7977
Improved required in metadata_profiles
roll Jul 14, 2022
66bc4e3
Fixed additional args in actions
roll Jul 14, 2022
4a2d851
Added minimal resource example
roll Jul 14, 2022
126d0d5
Improved validation error
roll Jul 14, 2022
3e69355
Recovered strict mode validation
roll Jul 14, 2022
540c2bd
Improved InquiryTask error message
roll Jul 14, 2022
a0e7761
Added required value check (#1178)
shashigharti Jul 14, 2022
7e83132
Updated to metadata_profile_patch
roll Jul 14, 2022
38391b9
Enable metadata validation on resource.open
roll Jul 14, 2022
899243b
Improved resource.write
roll Jul 14, 2022
4a374af
Support legacy pipelines
roll Jul 14, 2022
cfdd5ea
Added support for legacy inquiry
roll Jul 14, 2022
cc5e2a2
Added frictionless$@4 deprecation warnings
roll Jul 14, 2022
8cb467b
Added name/type patterns to profiles
roll Jul 14, 2022
5d20bb9
Required unique field names
roll Jul 14, 2022
58bb372
Rebased on has_dialect/schema
roll Jul 15, 2022
80887ff
Improved internal resource logic
roll Jul 15, 2022
45591e4
Fixed tests
roll Jul 15, 2022
f71a400
Enabled strict mode for formats.csv
roll Jul 15, 2022
4cc0ac6
Removed file-level type ignores
roll Jul 15, 2022
4760990
Include tests for pyright (the checker is broken currently)
roll Jul 15, 2022
22f8e55
Migrated json parser from create_parser
roll Jul 16, 2022
b2fc79d
Migrated jsonl parser from create_parser
roll Jul 16, 2022
7d6916a
Rebased from fullpath to normpath
roll Jul 16, 2022
07da81f
Index package.analyze/extract by resource.name
roll Jul 16, 2022
c801739
Updated dev deps
roll Jul 16, 2022
d974bfe
Implemented resource.normdata
roll Jul 16, 2022
9547873
Bootstrapped Catalog class
roll Jul 16, 2022
cdb54cc
Bootstrapped Manager API
roll Jul 16, 2022
618f070
Bootstrapped portals.ckan
roll Jul 16, 2022
8af3b73
First version of ckanManager.read_package
roll Jul 16, 2022
e8336ac
Support opening package from a manager
roll Jul 16, 2022
1b612cb
Fixed version on catalog from ckan
roll Jul 16, 2022
25b9630
Support datapackage.json/yaml on ckan
roll Jul 16, 2022
9afe085
Replaced old ckan implementation
roll Jul 16, 2022
e76bd1c
First version of Github manager
roll Jul 16, 2022
d28c89e
Bootstrapped portals.zenodo
roll Jul 16, 2022
786747c
Added Metadata.metadata_type
roll Jul 17, 2022
774d91c
First zenodo implementation
roll Jul 17, 2022
f3d5192
Fixed linting
roll Jul 17, 2022
f9dddac
Fixed missing required info in resource summary
shashigharti Jul 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10']
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To update a reference in `docs/references` and some other auto-generated documen

## Code Contribution

Frictionless is a Python3.6+ framework, and it uses some common Python tools for the development process:
Frictionless is a Python3.8+ framework, and it uses some common Python tools for the development process:
- testing: `pytest`
- linting: `pylama`
- formatting: `black`
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ format:
black $(PACKAGE) tests

install:
pip install --upgrade -e .[bigquery,ckan,excel,gsheets,html,json,ods,pandas,s3,server,spss,sql,dev]
pip install --upgrade -e .[aws,bigquery,ckan,dev,excel,github,gsheets,html,ods,pandas,spss,sql,zenodo]

lint:
black $(PACKAGE) tests --check
pylama $(PACKAGE) tests
# mypy $(PACKAGE) --ignore-missing-imports
pyright $(PACKAGE) tests

release:
git checkout main && git pull origin && git fetch -p
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ $ frictionless validate data/invalid.csv

Please visit our documentation portal:
- https://framework.frictionlessdata.io

72 changes: 72 additions & 0 deletions data/cassettes/test_remote_loader_http_preload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/54.0.2840.87 Safari/537.36
method: GET
uri: https://raw.githubusercontent.com/frictionlessdata/frictionless-py/master/data/table.csv
response:
body:
string: !!binary |
H4sIAAAAAAAAA8tM0clLzE3lMtRJzUvPySzO4DLSebJj7dPZe5/s2sUFAAFuQI0eAAAA
headers:
Accept-Ranges:
- bytes
Access-Control-Allow-Origin:
- '*'
Cache-Control:
- max-age=300
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Length:
- '51'
Content-Security-Policy:
- default-src 'none'; style-src 'unsafe-inline'; sandbox
Content-Type:
- text/plain; charset=utf-8
Date:
- Fri, 01 Jul 2022 08:49:49 GMT
ETag:
- W/"0172a2fd99319bed82fe7cccbd7a44b27a77f7200caf0d04b7f23cbb6b81026d"
Expires:
- Fri, 01 Jul 2022 08:54:49 GMT
Source-Age:
- '0'
Strict-Transport-Security:
- max-age=31536000
Vary:
- Authorization,Accept-Encoding,Origin
Via:
- 1.1 varnish
X-Cache:
- MISS
X-Cache-Hits:
- '0'
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- 579c13ab644c059a692533c2305bc479f682dc3c
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- AB1C:81E9:ECB60:1031CE:62BEB52D
X-Served-By:
- cache-fra19129-FRA
X-Timer:
- S1656665390.744899,VS0,VE177
X-XSS-Protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
30 changes: 30 additions & 0 deletions data/countries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "countries",
"type": "table",
"path": "countries.csv",
"scheme": "file",
"format": "csv",
"hashing": "md5",
"encoding": "utf-8",
"mediatype": "text/csv",
"schema": {
"fields": [
{
"name": "id",
"type": "integer"
},
{
"name": "neighbor_id",
"type": "integer"
},
{
"name": "name",
"type": "string"
},
{
"name": "population",
"type": "integer"
}
]
}
}
19 changes: 19 additions & 0 deletions data/countries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
path: countries.csv
name: countries
profile: tabular-data-resource
scheme: file
format: csv
hashing: md5
encoding: utf-8-sig
schema:
fields:
- type: integer
name: id
required: true
- type: integer
name: neighbor_id
- type: string
name: name
required: true
- type: integer
name: population
4 changes: 3 additions & 1 deletion data/dialect.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"delimiter": ";"
"csv": {
"delimiter": ";"
}
}
11 changes: 11 additions & 0 deletions data/fixtures/summary/describe-with-required-field.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+-------------+---------+------------+
| name | type | required |
+=============+=========+============+
| id | integer | True |
+-------------+---------+------------+
| neighbor_id | integer | |
+-------------+---------+------------+
| name | string | True |
+-------------+---------+------------+
| population | integer | |
+-------------+---------+------------+
11 changes: 11 additions & 0 deletions data/fixtures/summary/describe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+-------------+---------+------------+
| name | type | required |
+=============+=========+============+
| id | integer | |
+-------------+---------+------------+
| neighbor_id | string | |
+-------------+---------+------------+
| name | string | |
+-------------+---------+------------+
| population | string | |
+-------------+---------+------------+
13 changes: 13 additions & 0 deletions data/fixtures/summary/extract.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
+----+-------------+-----------+------------+
| id | neighbor_id | name | population |
+====+=============+===========+============+
| 1 | 'Ireland' | 'Britain' | '67' |
+----+-------------+-----------+------------+
| 2 | '3' | 'France' | 'n/a' |
+----+-------------+-----------+------------+
| 3 | '22' | 'Germany' | '83' |
+----+-------------+-----------+------------+
| 4 | None | 'Italy' | '60' |
+----+-------------+-----------+------------+
| 5 | None | None | None |
+----+-------------+-----------+------------+
14 changes: 14 additions & 0 deletions data/fixtures/summary/five-rows-only.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
+----+------+
| id | name |
+====+======+
| 1 | 'a' |
+----+------+
| 2 | 'b' |
+----+------+
| 3 | 'c' |
+----+------+
| 4 | 'd' |
+----+------+
| 5 | 'e' |
+----+------+
...
15 changes: 7 additions & 8 deletions data/fixtures/summary/multiline-scheme-error.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
## Errors
## Errors

+-------+---------+---------+---------------------------------------------------+
| row | field | code | message |
+=======+=========+=========+===================================================+
| | | scheme- | The data source could not be successfully loaded: |
| | | error | [Errno 2] No such file or directory: |
| | | | 'data/countriess.csv' |
+-------+---------+---------+---------------------------------------------------+
+-------+---------+--------------+----------------------------------------------------------------------------------------+
| row | field | code | message |
+=======+=========+==============+========================================================================================+
| | | scheme-error | The data source could not be successfully loaded: [Errno 2] No such file or directory: |
| | | | 'data/countriess.csv' |
+-------+---------+--------------+----------------------------------------------------------------------------------------+
3 changes: 3 additions & 0 deletions data/minimal.resource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "table.csv"
}
10 changes: 10 additions & 0 deletions data/noschema.resource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "table",
"type": "table",
"path": "table.csv",
"scheme": "file",
"format": "csv",
"hashing": "sha256",
"encoding": "utf-8",
"mediatype": "text/csv"
}
6 changes: 6 additions & 0 deletions data/resource-init.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "name",
"path": "table.csv",
"scheme": "file",
"format": "csv"
}
3 changes: 3 additions & 0 deletions data/table-delimiter.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id;name
1;english
2;中国人
2 changes: 1 addition & 1 deletion docs/guides/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Let's get started with Frictionless! We will learn how to install and use the fr

## Installation

> The framework requires Python3.6+. Versioning follows the [SemVer Standard](https://semver.org/).
> The framework requires Python3.8+. Versioning follows the [SemVer Standard](https://semver.org/).

```bash title="CLI"
pip install frictionless
Expand Down
38 changes: 14 additions & 24 deletions frictionless/__init__.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,27 @@
from .actions import describe, extract, transform, validate
from .check import Check
from .control import Control
from .catalog import Catalog
from .checklist import Checklist, Check
from .detector import Detector
from .dialect import Dialect
from .dialect import Dialect, Control
from .error import Error
from .exception import FrictionlessException
from .field import Field
from .file import File
from .header import Header
from .inquiry import Inquiry, InquiryTask
from .layout import Layout
from .loader import Loader
from .metadata import Metadata
from .package import Package
from .package import Package, Manager, Storage
from .plugin import Plugin
from .parser import Parser
from .pipeline import Pipeline, PipelineTask
from .pipeline import Pipeline, Step
from .program import program
from .report import Report, ReportTask
from .resource import Resource
from .row import Row
from .schema import Schema
from .resource import Resource, Loader, Parser
from .schema import Schema, Field
from .settings import VERSION as __version__
from .server import Server
from .status import Status, StatusTask
from .step import Step
from .storage import Storage
from .server import server
from .system import system
from .type import Type
from . import errors
from .table import Header, Lookup, Row
from . import checks
from . import errors
from . import fields
from . import formats
from . import portals
from . import schemes
from . import steps
from . import types

# TODO: remove in v5
from .actions import *
16 changes: 0 additions & 16 deletions frictionless/actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,3 @@
from .extract import extract
from .transform import transform
from .validate import validate

# TODO: remove these legacy imports in v5
from .describe import (
describe_dialect,
describe_resource,
describe_package,
describe_schema,
)
from .extract import extract_resource, extract_package
from .transform import transform_resource, transform_package, transform_pipeline
from .validate import (
validate_inquiry,
validate_resource,
validate_package,
validate_schema,
)
Loading