Git Product home page Git Product logo

alkali's People

Contributors

kneufeld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

alkali's Issues

fcntl ModuleNotFoundError

Machine=Windows 10

Pipenv file contents:

`[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
mypy = "*"

[packages]
alkali = "*"
fcntl = "*"
pytest = "*"

[requires]
python_version = "3.6"`

Script:

from alkali import Database, FileStorage, JSONStorage, Storage, Model, fields

class BaseErx(Model):
    id = fields.IntField(primary_key=True)
    cid = fields.StringField()
    prod_name=fields.StringField()
    pref_route=fields.ForeignKey(Route)


class Route(Model):
    route = fields.StringField()


if __name__ == "__main__":
    db = Database(models=[BaseErx, Route], storage = JSONStorage, save_on_exit=True)
    route=Route(route='PO')
    route.save()
    db.store()
    b = BaseErx(id=1, cid="C12345", prod_name="test", pref_route = route)
    b.save()
    db.store()`
```

Does it support Windows??

Another field type CategoryList

Hi,
We spoke earlier about a proposal to add another field, CategoryList.

It can be seen as a set of unique values that can be validated against at run time to make sure the correct data is being held there.
I checked out the SetField field on alkali, but it doesn't seem to include a way to pass allowable choices as the only choices available.

Specs:

  • User uses fields.CategoryList to call an instance and passes it a list or dict.
  • Override cast so that when user tries to initialize the model w/ values that are not in the aforementioned iterable they get a error stating that they can only save allowed pieces of information.

Would you be interested?

Update the version in pypi

Version 0.7.0 on pypi requires six==1.10.0, which makes it incompatible with such popular tools like Jupyter or Ipython.

Pypi Package missing storage.py file

Hi, sorry its me again! I just installed this package on my Manjaro OS with Pipenv.

     28 import os
     29 
---> 30 from .storage import Storage, JSONStorage
     31 
     32 import logging

ModuleNotFoundError: No module named 'alkali.storage'

Pipfile content:

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
ipython = "*"
alkali = "==0.7.2"

[requires]
python_version = "3.7"

├── alkali
│   ├── database.py
│   ├── fields.py
│   ├── init.py
│   ├── manager.py
│   ├── memoized_property.py
│   ├── metamodel.py
│   ├── model.py
│   ├── peekorator.py
│   ├── query.py
│   ├── reify.py
│   ├── relmanager.py
│   ├── signals.py
│   └── utils.py

The link on PyPi: https://files.pythonhosted.org/packages/1d/83/6599d660fc467ea0cb740500e235189911e33b085da45472db3b7184167e/alkali-0.7.2.tar.gz#sha256=9b77f6d59e5b643d2df3384dbaf89ab0fb8820432ebef30a9cd5ed963ef5d79f

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.